mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
New testcase
llvm-svn: 6164
This commit is contained in:
parent
2054529c90
commit
e586cc42bf
11
test/Regression/C++Frontend/global_ctor.cpp
Normal file
11
test/Regression/C++Frontend/global_ctor.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user