aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGenCXX/pr11676.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/pr11676.cpp b/test/CodeGenCXX/pr11676.cpp
new file mode 100644
index 0000000000..78e7a5fe02
--- /dev/null
+++ b/test/CodeGenCXX/pr11676.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 %s -std=c++11 -emit-llvm-only
+// CHECK that we don't crash.
+
+union _XEvent {
+};
+void ProcessEvent() {
+ _XEvent pluginEvent = _XEvent();
+}