mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 22:38:56 -04:00

C++98 mode. This improves on the previous diagnostic message of: error: expected identifier or '{' llvm-svn: 180076
10 lines
569 B
C++
10 lines
569 B
C++
// RUN: %clang_cc1 -fsyntax-only -std=c++98 -Wc++11-extensions -verify %s
|
|
|
|
long long ll1 = // expected-warning {{'long long' is a C++11 extension}}
|
|
-42LL; // expected-warning {{'long long' is a C++11 extension}}
|
|
unsigned long long ull1 = // expected-warning {{'long long' is a C++11 extension}}
|
|
42ULL; // expected-warning {{'long long' is a C++11 extension}}
|
|
|
|
enum struct E1 { A, B }; // expected-warning {{scoped enumerations are a C++11 extension}}
|
|
enum class E2 { C, D }; // expected-warning {{scoped enumerations are a C++11 extension}}
|