summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/long-long.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/long-long.cpp')
-rw-r--r--clang/test/Lexer/long-long.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/test/Lexer/long-long.cpp b/clang/test/Lexer/long-long.cpp
index c3f371d17f0..1a0f37b7ff4 100644
--- a/clang/test/Lexer/long-long.cpp
+++ b/clang/test/Lexer/long-long.cpp
@@ -6,13 +6,15 @@
#if !defined(__cplusplus)
# if __STDC_VERSION__ < 199901L
-/* expected-error@19 {{'long long' is an extension when C99 mode is not enabled}} */
+/* expected-error@21 {{'long long' is an extension when C99 mode is not enabled}} */
+# else
+/* expected-no-diagnostics */
# endif
#else
# if __cplusplus < 201103L
-/* expected-error@19 {{'long long' is a C++11 extension}} */
+/* expected-error@21 {{'long long' is a C++11 extension}} */
# else
-/* expected-warning@19 {{'long long' is incompatible with C++98}} */
+/* expected-warning@21 {{'long long' is incompatible with C++98}} */
# endif
#endif
OpenPOWER on IntegriCloud