aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/cxx-static_assert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/cxx-static_assert.cpp')
-rw-r--r--test/PCH/cxx-static_assert.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/PCH/cxx-static_assert.cpp b/test/PCH/cxx-static_assert.cpp
index ace12e0922d4..8049525fb598 100644
--- a/test/PCH/cxx-static_assert.cpp
+++ b/test/PCH/cxx-static_assert.cpp
@@ -9,11 +9,12 @@
#define HEADER
template<int N> struct T {
- static_assert(N == 2, "N is not 2!"); // expected-error {{static_assert failed "N is not 2!"}}
+ static_assert(N == 2, "N is not 2!");
};
#else
+// expected-error@12 {{static_assert failed "N is not 2!"}}
T<1> t1; // expected-note {{in instantiation of template class 'T<1>' requested here}}
T<2> t2;