llvm-project/llvm/test/Regression/C++Frontend/global_ctor.cpp

12 lines
216 B
C++
Raw Normal View History

2003-05-14 02:09:44 +08:00
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