xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/2006-11-30-ConstantExprCrash.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -o -
2*f4a2713aSLionel Sambuc // PR1027
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc struct sys_var {
5*f4a2713aSLionel Sambuc   unsigned name_length;
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc   bool no_support_one_shot;
sys_varsys_var8*f4a2713aSLionel Sambuc   sys_var() {}
9*f4a2713aSLionel Sambuc };
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc struct sys_var_thd : public sys_var {
13*f4a2713aSLionel Sambuc };
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc extern sys_var_thd sys_auto_is_null;
16*f4a2713aSLionel Sambuc 
getsys_variables()17*f4a2713aSLionel Sambuc sys_var *getsys_variables() {
18*f4a2713aSLionel Sambuc   return &sys_auto_is_null;
19*f4a2713aSLionel Sambuc }
20*f4a2713aSLionel Sambuc 
21*f4a2713aSLionel Sambuc sys_var *sys_variables = &sys_auto_is_null;
22