We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3fe0e4 commit 31dd03cCopy full SHA for 31dd03c
clang/test/PCH/cxx2a-constraints-crash.cpp
@@ -1,7 +1,5 @@
1
-// RUN: %clang_cc1 -std=c++2a -emit-pch %s -o %t
2
-// RUN: %clang_cc1 -std=c++2a -include-pch %t -verify %s
3
-
4
-// expected-no-diagnostics
+// RUN: %clang_cc1 -std=c++2a -fallow-pch-with-compiler-errors -emit-pch -o %t %s -verify
+// RUN: %clang_cc1 -std=c++2a -fallow-pch-with-compiler-errors -include-pch %t %s -verify
5
6
#ifndef HEADER
7
#define HEADER
@@ -27,3 +25,12 @@ int main() {
27
25
}
28
26
29
#endif
+
+namespace GH99036 {
30
31
+template <typename T>
32
+concept C; // expected-error {{expected '='}}
33
34
+template <C U> void f();
35
36
+} // namespace GH99036
0 commit comments