[clang] 84ce462 - [Concepts] Fix failing test on Windows
Saar Raz via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 06:23:22 PST 2020
Author: Saar Raz
Date: 2020-01-09T16:13:46+02:00
New Revision: 84ce46269cfda8800346706251ac3587b2d1c9f5
URL: https://github.com/llvm/llvm-project/commit/84ce46269cfda8800346706251ac3587b2d1c9f5
DIFF: https://github.com/llvm/llvm-project/commit/84ce46269cfda8800346706251ac3587b2d1c9f5.diff
LOG: [Concepts] Fix failing test on Windows
Fix test failed by D43357 on Windows.
Added:
Modified:
clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
Removed:
################################################################################
diff --git a/clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp b/clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
index dba2ef204e1d..36c68071448c 100644
--- a/clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
+++ b/clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
@@ -79,11 +79,11 @@ namespace non_template
return 0.0;
}
- void bar() requires (sizeof(long) >= 8) { }
+ void bar() requires (sizeof(char[8]) >= 8) { }
// expected-note at -1 {{candidate function}}
// expected-note at -2 {{similar constraint expressions not considered equivalent}}
- void bar() requires (sizeof(long) >= 8 && sizeof(int) <= 30) { }
+ void bar() requires (sizeof(char[8]) >= 8 && sizeof(int) <= 30) { }
// expected-note at -1 {{candidate function}}
// expected-note at -2 {{similar constraint expression here}}
@@ -111,4 +111,3 @@ namespace non_template
static_assert(goo(1) == 1);
static_assert(doo(2) == 1); // expected-error {{call to 'doo' is ambiguous}}
}
-
More information about the cfe-commits
mailing list