diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-30 15:15:34 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-30 15:15:34 +0000 |
commit | 3cc2648b476e4b87e355dea3b16981a1f7498532 (patch) | |
tree | a8e22dae9a48384bada3c1e3ad93c6246f6ba697 /clang/test/Preprocessor/pragma_diagnostic.c | |
parent | 7983340465c988add39c18c108d85b2357ea86ae (diff) | |
download | bcm5719-llvm-3cc2648b476e4b87e355dea3b16981a1f7498532.tar.gz bcm5719-llvm-3cc2648b476e4b87e355dea3b16981a1f7498532.zip |
Now that GCC will have #pragma push/pop (in GCC 4.6), allow the
#pragma without requiring it to be in the "clang" namespace, from
Louis Gerbarg!
llvm-svn: 112484
Diffstat (limited to 'clang/test/Preprocessor/pragma_diagnostic.c')
-rw-r--r-- | clang/test/Preprocessor/pragma_diagnostic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Preprocessor/pragma_diagnostic.c b/clang/test/Preprocessor/pragma_diagnostic.c index d157406b3dc..818f02f0b90 100644 --- a/clang/test/Preprocessor/pragma_diagnostic.c +++ b/clang/test/Preprocessor/pragma_diagnostic.c @@ -20,9 +20,8 @@ #endif - #define foo error -#pragma GCC diagnostic foo "-Wundef" // expected-warning {{pragma diagnostic expected 'error', 'warning', 'ignored', or 'fatal'}} +#pragma GCC diagnostic foo "-Wundef" // expected-warning {{pragma diagnostic expected 'error', 'warning', 'ignored', 'fatal', 'push', or 'pop'}} #pragma GCC diagnostic error 42 // expected-warning {{unexpected token in pragma diagnostic}} |