summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/empty-union.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/empty-union.cpp')
-rw-r--r--clang/test/CodeGenCXX/empty-union.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/empty-union.cpp b/clang/test/CodeGenCXX/empty-union.cpp
new file mode 100644
index 0000000..7f3e6cc
--- /dev/null
+++ b/clang/test/CodeGenCXX/empty-union.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm -o - %s
+
+union sigval { };
+union sigval Test1;
+
+union NonPODUnion { ~NonPODUnion(); };
+union NonPODUnion Test2;