mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6164 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6736dce150
commit
36bd5b04fa
11
test/C++Frontend/global_ctor.cpp
Normal file
11
test/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