summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-04 09:06:02 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:56 (GMT)
commit9064f78b0c07a79f25ee04cf8afaf726d18ec722 (patch)
treeac4addca660fb460a4636b0f191217efbd127467 /Tests
parent3322b393a265747ae7c187d426f7f1676b478de4 (diff)
downloadCMake-9064f78b0c07a79f25ee04cf8afaf726d18ec722.zip
CMake-9064f78b0c07a79f25ee04cf8afaf726d18ec722.tar.gz
CMake-9064f78b0c07a79f25ee04cf8afaf726d18ec722.tar.bz2
Features: Add cxx_unrestricted_unions.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/cxx_unrestricted_unions.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_unrestricted_unions.cpp b/Tests/CompileFeatures/cxx_unrestricted_unions.cpp
new file mode 100644
index 0000000..698fd61
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_unrestricted_unions.cpp
@@ -0,0 +1,11 @@
+
+struct point {
+ point() {}
+ point(int x, int y) : x_(x), y_(y) {}
+ int x_, y_;
+};
+union u {
+ point p_;
+ int i_;
+ const char* s_;
+};