summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-extra-semi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-extra-semi.cpp')
-rw-r--r--clang/test/Parser/cxx-extra-semi.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-extra-semi.cpp b/clang/test/Parser/cxx-extra-semi.cpp
index 2aa18dfcc0e..de14bc0354d 100644
--- a/clang/test/Parser/cxx-extra-semi.cpp
+++ b/clang/test/Parser/cxx-extra-semi.cpp
@@ -38,4 +38,7 @@ union B {
#if __cplusplus < 201103L
// expected-warning@-3{{extra ';' outside of a function is a C++11 extension}}
// expected-warning@-3{{extra ';' outside of a function is a C++11 extension}}
+#elif !defined(PEDANTIC)
+// expected-warning@-6{{extra ';' outside of a function is incompatible with C++98}}
+// expected-warning@-6{{extra ';' outside of a function is incompatible with C++98}}
#endif
OpenPOWER on IntegriCloud