diff options
Diffstat (limited to 'test/Preprocessor/macro-reserved-cxx11.cpp')
-rw-r--r-- | test/Preprocessor/macro-reserved-cxx11.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Preprocessor/macro-reserved-cxx11.cpp b/test/Preprocessor/macro-reserved-cxx11.cpp new file mode 100644 index 0000000..a740ff6 --- /dev/null +++ b/test/Preprocessor/macro-reserved-cxx11.cpp @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++11 -pedantic -verify %s + +#define for 0 // expected-warning {{keyword is hidden by macro definition}} +#define final 1 // expected-warning {{keyword is hidden by macro definition}} +#define override // expected-warning {{keyword is hidden by macro definition}} + +int x; |