summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/2005-02-13-BadDynamicInit.cpp
blob: b1db67aebfd3f8c6ef3f29f7645a8c92d25252cd (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// This testcase corresponds to PR509
struct Data {
  unsigned *data;
  unsigned array[1];
};

// CHECK-NOT: llvm.global_ctors
Data shared_null = { shared_null.array };