Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git] / test / FrontendC++ / 2006-11-30-ConstantExprCrash.cpp
blob365c8e80fbf5f9fe2e7ebaadb4a4530a64fa0262
1 // RUN: %llvmgxx %s -emit-llvm -S -o -
2 // PR1027
4 struct sys_var {
5 unsigned name_length;
7 bool no_support_one_shot;
8 sys_var() {}
9 };
12 struct sys_var_thd : public sys_var {
15 extern sys_var_thd sys_auto_is_null;
17 sys_var *getsys_variables() {
18 return &sys_auto_is_null;
21 sys_var *sys_variables = &sys_auto_is_null;