diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-13 18:09:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-13 18:09:44 +0000 |
commit | 36bd5b04fa29f062a862a731de7d20a3f0f3fe80 (patch) | |
tree | 8aefb6be1415844e548730dc7d7f027d6ba637e4 | |
parent | 6736dce15024ac72468fc94105a7681df70c76c1 (diff) |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6164 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/C++Frontend/global_ctor.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/C++Frontend/global_ctor.cpp b/test/C++Frontend/global_ctor.cpp new file mode 100644 index 0000000000..ebca6b59a5 --- /dev/null +++ b/test/C++Frontend/global_ctor.cpp @@ -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 |