[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2006-11-30-ConstantExprCrash.cpp
Chris Lattner
sabre at nondot.org
Thu Nov 30 22:35:11 PST 2006
Changes in directory llvm/test/Regression/C++Frontend:
2006-11-30-ConstantExprCrash.cpp added (r1.1)
---
Log message:
new testcase for PR1027: http://llvm.org/PR1027
---
Diffs of the changes: (+27 -0)
2006-11-30-ConstantExprCrash.cpp | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+)
Index: llvm/test/Regression/C++Frontend/2006-11-30-ConstantExprCrash.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2006-11-30-ConstantExprCrash.cpp:1.1
*** /dev/null Fri Dec 1 00:35:06 2006
--- llvm/test/Regression/C++Frontend/2006-11-30-ConstantExprCrash.cpp Fri Dec 1 00:34:56 2006
***************
*** 0 ****
--- 1,27 ----
+ // RUN: %llvmgxx %s -emit-llvm -S -o -
+ // PR1027
+
+ struct sys_var {
+ unsigned name_length;
+
+ bool no_support_one_shot;
+ sys_var() {}
+ };
+
+
+ struct sys_var_thd : public sys_var {
+ };
+
+ extern sys_var_thd sys_auto_is_null;
+
+ sys_var *getsys_variables() {
+ return &sys_auto_is_null;
+ }
+
+ sys_var *sys_variables = &sys_auto_is_null;
+
+
+
+
+
+
More information about the llvm-commits
mailing list