diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2014-12-11 12:18:08 +0000 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2014-12-11 12:18:08 +0000 |
commit | 83cf078f8fba90b9c5cfb554ab2a3cb736324734 (patch) | |
tree | 9d803073c90cefcd6167ddae5045361e1798b5a5 /clang/test/PCH/single-token-macro.c | |
parent | a1b19228277c407c767c97832c6dc337e9aa903d (diff) | |
download | bcm5719-llvm-83cf078f8fba90b9c5cfb554ab2a3cb736324734.tar.gz bcm5719-llvm-83cf078f8fba90b9c5cfb554ab2a3cb736324734.zip |
Emit warning if define or undef reserved identifier or keyword.
Recommit of r223114, reverted in r223120.
llvm-svn: 224012
Diffstat (limited to 'clang/test/PCH/single-token-macro.c')
-rw-r--r-- | clang/test/PCH/single-token-macro.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/PCH/single-token-macro.c b/clang/test/PCH/single-token-macro.c index aa02f65f78b..b077abaa036 100644 --- a/clang/test/PCH/single-token-macro.c +++ b/clang/test/PCH/single-token-macro.c @@ -12,6 +12,8 @@ #ifndef HEADER #define HEADER +#pragma clang diagnostic ignored "-Wreserved-id-macro" + #ifdef __stdcall // __stdcall is defined as __attribute__((__stdcall__)) for targeting mingw32. #undef __stdcall |