diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-01 06:34:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-01 06:34:56 +0000 |
commit | 772aa15a4d33b61b854b95e65a7fbccc46b4d5b3 (patch) | |
tree | 65c34b888db98021dade8942bd9bdc32b7c16f58 | |
parent | 7da3bde866889f963e98049c09c5b43cfb336d3f (diff) | |
download | external_llvm-772aa15a4d33b61b854b95e65a7fbccc46b4d5b3.zip external_llvm-772aa15a4d33b61b854b95e65a7fbccc46b4d5b3.tar.gz external_llvm-772aa15a4d33b61b854b95e65a7fbccc46b4d5b3.tar.bz2 |
new testcase for PR1027
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32063 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/C++Frontend/2006-11-30-ConstantExprCrash.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/C++Frontend/2006-11-30-ConstantExprCrash.cpp b/test/C++Frontend/2006-11-30-ConstantExprCrash.cpp new file mode 100644 index 0000000..365c8e8 --- /dev/null +++ b/test/C++Frontend/2006-11-30-ConstantExprCrash.cpp @@ -0,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; + + + + + + |