Dmitri Gribenko | dd15261 | 2012-09-24 21:09:05 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -std=c++98 -Wc++11-extensions -verify %s |
| 2 | |
| 3 | long long ll1 = // expected-warning {{'long long' is a C++11 extension}} |
| 4 | -42LL; // expected-warning {{'long long' is a C++11 extension}} |
| 5 | unsigned long long ull1 = // expected-warning {{'long long' is a C++11 extension}} |
| 6 | 42ULL; // expected-warning {{'long long' is a C++11 extension}} |
| 7 | |
Richard Trieu | ed5a292 | 2013-04-23 02:47:36 +0000 | [diff] [blame] | 8 | enum struct E1 { A, B }; // expected-warning {{scoped enumerations are a C++11 extension}} |
| 9 | enum class E2 { C, D }; // expected-warning {{scoped enumerations are a C++11 extension}} |