From baf2912b402f695cd6b957df47fdc9a50c0a5b6a Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 9 Jul 2013 00:57:56 +0000 Subject: Generalize hack allowing 'const' in __has_attribute (etc) to allow any token with identifier info. This covers most identifier-like entities (other than the ISO646 keywords). llvm-svn: 185895 --- clang/test/Preprocessor/has_attribute.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test/Preprocessor/has_attribute.c') diff --git a/clang/test/Preprocessor/has_attribute.c b/clang/test/Preprocessor/has_attribute.c index 711cf671cfe..555c2b3f9e2 100644 --- a/clang/test/Preprocessor/has_attribute.c +++ b/clang/test/Preprocessor/has_attribute.c @@ -34,3 +34,7 @@ int has_something_we_dont_have(); static int constFunction() __attribute__((const)); #endif +// CHECK: has_no_volatile_attribute +#if !__has_attribute(volatile) +int has_no_volatile_attribute(); +#endif -- cgit v1.2.3