llvm/test/C++Frontend/global_ctor.cpp
Chris Lattner 36bd5b04fa New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6164 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-13 18:09:44 +00:00

12 lines
216 B
C++

int array[] = { 1, 2, 3, 4 };
struct foo {
foo() throw();
} Constructor1; // Global with ctor to be called before main
foo Constructor2;
struct bar {
~bar() throw();
} Destructor1; // Global with dtor