llvm-for-llvmta/tools/clang/test/Preprocessor/macro-reserved-cxx11.cpp

9 lines
376 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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;