]> granicus.if.org Git - clang/commitdiff
Add test for PRr11676.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 30 Dec 2011 03:13:44 +0000 (03:13 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 30 Dec 2011 03:13:44 +0000 (03:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147363 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/pr11676.cpp [new file with mode: 0644]

diff --git a/test/CodeGenCXX/pr11676.cpp b/test/CodeGenCXX/pr11676.cpp
new file mode 100644 (file)
index 0000000..78e7a5f
--- /dev/null
@@ -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();
+}