diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-11 17:55:32 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-11 17:55:32 +0000 |
commit | b1e36c662bcba0ece7893c575dd7b17b2c5ac985 (patch) | |
tree | a30596980098cdd37e91e5ce57962b9c3f50f542 /clang/test/Preprocessor/feature_tests.c | |
parent | 6e536de1a184fcdf517aa46d39f5b50d3af0ada4 (diff) | |
download | bcm5719-llvm-b1e36c662bcba0ece7893c575dd7b17b2c5ac985.tar.gz bcm5719-llvm-b1e36c662bcba0ece7893c575dd7b17b2c5ac985.zip |
Provide, and document, a set of __c11_atomic_* intrinsics to implement C11's
<stdatomic.h> header.
In passing, fix LanguageExtensions to note that C11 and C++11 are no longer
"upcoming standards" but are now actually standardized.
llvm-svn: 154513
Diffstat (limited to 'clang/test/Preprocessor/feature_tests.c')
-rw-r--r-- | clang/test/Preprocessor/feature_tests.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/feature_tests.c b/clang/test/Preprocessor/feature_tests.c index be9c62d7808..b78a2517b18 100644 --- a/clang/test/Preprocessor/feature_tests.c +++ b/clang/test/Preprocessor/feature_tests.c @@ -12,6 +12,7 @@ #if !__has_builtin(__builtin_huge_val) || \ !__has_builtin(__builtin_shufflevector) || \ !__has_builtin(__builtin_trap) || \ + !__has_builtin(__c11_atomic_init) || \ !__has_feature(attribute_analyzer_noreturn) || \ !__has_feature(attribute_overloadable) #error Clang should have these |