diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-18 01:34:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-18 01:34:22 +0000 |
commit | bc63de144fbaea908ac011a3b458fd7ec4a3f645 (patch) | |
tree | 1e3f0690f431d7d9515cd20bbceca3eda5cccea8 /clang/test/Preprocessor/if_warning.c | |
parent | b547394ba5ed6dde4ac3c4f990e5e442077b6ae0 (diff) | |
download | bcm5719-llvm-bc63de144fbaea908ac011a3b458fd7ec4a3f645.tar.gz bcm5719-llvm-bc63de144fbaea908ac011a3b458fd7ec4a3f645.zip |
Fix PR3938 by taking into account C99 6.10p4.
llvm-svn: 69413
Diffstat (limited to 'clang/test/Preprocessor/if_warning.c')
-rw-r--r-- | clang/test/Preprocessor/if_warning.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/if_warning.c b/clang/test/Preprocessor/if_warning.c index acb6d5ea422..5fc8c347a6c 100644 --- a/clang/test/Preprocessor/if_warning.c +++ b/clang/test/Preprocessor/if_warning.c @@ -11,3 +11,10 @@ extern int x; #if defined(foo) #endif + +// PR3938 +#if 0 +#ifdef D +#else 1 // Should not warn due to C99 6.10p4 +#endif +#endif |