[llvm-commits] CVS: llvm/test/Regression/C++Frontend/global_ctor.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue May 13 13:10:01 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend:
global_ctor.cpp added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/global_ctor.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/global_ctor.cpp:1.1
*** /dev/null Tue May 13 13:09:54 2003
--- llvm/test/Regression/C++Frontend/global_ctor.cpp Tue May 13 13:09:44 2003
***************
*** 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
More information about the llvm-commits
mailing list