diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-03 23:51:05 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-03 23:51:05 +0000 |
| commit | 522fa537033d94bf1ea500e9eb5ec743f702bd36 (patch) | |
| tree | 746a737a6d30695aa15710e16bef50544805d948 /clang/test/Lexer/has_feature_cxx0x.cpp | |
| parent | 2e312c8738d182fa13d835d3924682dc404097ca (diff) | |
| download | bcm5719-llvm-522fa537033d94bf1ea500e9eb5ec743f702bd36.tar.gz bcm5719-llvm-522fa537033d94bf1ea500e9eb5ec743f702bd36.zip | |
Add a pile of tests for unrestricted unions, and advertise support for them.
llvm-svn: 151992
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
| -rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index d520208d2ea..40d651dff53 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -235,3 +235,12 @@ int no_generalized_initializers(); // CHECK-0X: has_generalized_initializers // CHECK-NO-0X: no_generalized_initializers + +#if __has_feature(cxx_unrestricted_unions) +int has_unrestricted_unions(); +#else +int no_unrestricted_unions(); +#endif + +// CHECK-0X: has_unrestricted_unions +// CHECK-NO-0X: no_unrestricted_unions |

