summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/2006-11-30-ConstantExprCrash.cpp
blob: 2088e63fd5f8d94e7c711ae03a645be24f6c5002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %clang_cc1 %s -emit-llvm -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;