diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-12-03 01:25:49 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-12-03 01:25:49 +0000 |
commit | 736a99382873f9d4ab8b42e93282c4fadb61e8cc (patch) | |
tree | cf3cf991ab07f84f8203774e37f1c693735456e7 /clang/test/Lexer/has_feature_cxx0x.cpp | |
parent | aad4af6d50a138350d401a8871ba82ecf44e9c47 (diff) | |
download | bcm5719-llvm-736a99382873f9d4ab8b42e93282c4fadb61e8cc.tar.gz bcm5719-llvm-736a99382873f9d4ab8b42e93282c4fadb61e8cc.zip |
Add support for has_feature(cxx_alignof) and has_feature(c_alignof).
r142020 added support for has_feature(cxx_alignas). This does the same for
alignof.
llvm-svn: 223186
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index e558f8804b2..9fb05de31a2 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -234,6 +234,16 @@ int no_alignas(); // CHECK-11: has_alignas // CHECK-NO-11: no_alignas +#if __has_feature(cxx_alignof) +int has_alignof(); +#else +int no_alignof(); +#endif + +// CHECK-1Y: has_alignof +// CHECK-11: has_alignof +// CHECK-NO-11: no_alignof + #if __has_feature(cxx_raw_string_literals) int has_raw_string_literals(); #else |