From 522fa537033d94bf1ea500e9eb5ec743f702bd36 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 3 Mar 2012 23:51:05 +0000 Subject: Add a pile of tests for unrestricted unions, and advertise support for them. llvm-svn: 151992 --- clang/test/Lexer/has_feature_cxx0x.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp') 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 -- cgit v1.2.3