llvm-project/llvm/test/Regression/C++Frontend/2006-11-30-ConstantExprCrash.cpp
Chris Lattner 18f6fe36ce new testcase for PR1027
llvm-svn: 32063
2006-12-01 06:34:56 +00:00

28 lines
331 B
C++

// 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;