From 3cc2648b476e4b87e355dea3b16981a1f7498532 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 30 Aug 2010 15:15:34 +0000 Subject: 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 --- clang/test/Preprocessor/pragma_diagnostic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/test/Preprocessor/pragma_diagnostic.c') 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}} -- cgit v1.2.3