New testcase
authorChris Lattner <sabre@nondot.org>
Tue, 13 May 2003 18:09:44 +0000 (18:09 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 May 2003 18:09:44 +0000 (18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6164 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/global_ctor.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/global_ctor.cpp b/test/C++Frontend/global_ctor.cpp
new file mode 100644 (file)
index 0000000..ebca6b5
--- /dev/null
@@ -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