diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-04-04 09:06:02 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-04-08 09:05:56 (GMT) |
commit | 9064f78b0c07a79f25ee04cf8afaf726d18ec722 (patch) | |
tree | ac4addca660fb460a4636b0f191217efbd127467 /Tests/CompileFeatures | |
parent | 3322b393a265747ae7c187d426f7f1676b478de4 (diff) | |
download | CMake-9064f78b0c07a79f25ee04cf8afaf726d18ec722.zip CMake-9064f78b0c07a79f25ee04cf8afaf726d18ec722.tar.gz CMake-9064f78b0c07a79f25ee04cf8afaf726d18ec722.tar.bz2 |
Features: Add cxx_unrestricted_unions.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r-- | Tests/CompileFeatures/cxx_unrestricted_unions.cpp | 11 |
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_; +}; |