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