summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/empty-union.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/empty-union.cpp')
-rw-r--r--test/CodeGenCXX/empty-union.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/empty-union.cpp b/test/CodeGenCXX/empty-union.cpp
new file mode 100644
index 0000000..fdd9741
--- /dev/null
+++ b/test/CodeGenCXX/empty-union.cpp
@@ -0,0 +1,10 @@
+// RUN: clang-cc -emit-llvm -o - %s
+
+union sigval { };
+
+union sigval sigev_value;
+
+int main()
+{
+ return sizeof(sigev_value);
+}
OpenPOWER on IntegriCloud