mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 15:46:05 +00:00

This patch should not change the test results, but it is useful if clang's default C++ language is ever changed from gnu++98. Patch by: Charles Li http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150727/134667.html llvm-svn: 243819
9 lines
376 B
C++
9 lines
376 B
C++
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -pedantic -verify %s
|
|
// RUN: %clang_cc1 -fsyntax-only -std=c++14 -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;
|