aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2006-03-01-GimplifyCrash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC++/2006-03-01-GimplifyCrash.cpp')
-rw-r--r--test/FrontendC++/2006-03-01-GimplifyCrash.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/FrontendC++/2006-03-01-GimplifyCrash.cpp b/test/FrontendC++/2006-03-01-GimplifyCrash.cpp
new file mode 100644
index 0000000..b0d00fe
--- /dev/null
+++ b/test/FrontendC++/2006-03-01-GimplifyCrash.cpp
@@ -0,0 +1,14 @@
+// RUN: %llvmgxx -S %s -o -
+
+struct PrefMapElem {
+ virtual ~PrefMapElem();
+ unsigned int fPrefId;
+};
+
+int foo() {
+ PrefMapElem* fMap;
+ if (fMap[0].fPrefId == 1)
+ return 1;
+
+ return 0;
+}