aboutsummaryrefslogtreecommitdiff
path: root/test/C++Frontend/global_ctor.cpp
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-09-26 14:58:39 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-09-26 14:58:39 +0000
commit91d66aa243c7075e05c06c9382b505c3293769e4 (patch)
treeced6efff9c2d0012708d96a2a69bd62798c3a2d7 /test/C++Frontend/global_ctor.cpp
parent67181ca7f67cd2959ee5d1d583d8b7e179f44d96 (diff)
Removing these tests from the regressions directory.
They now live in llvm/test/Programs/SingleSource/Regression alongside their UnitTest brethren. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend/global_ctor.cpp')
-rw-r--r--test/C++Frontend/global_ctor.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/test/C++Frontend/global_ctor.cpp b/test/C++Frontend/global_ctor.cpp
deleted file mode 100644
index e8b595d8f2..0000000000
--- a/test/C++Frontend/global_ctor.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <stdio.h>
-//extern int printf(const char *, ...);
-
-int CN = 0;
-int DN = 0;
-
-struct foo {
- int Num;
- foo(int num) : Num(num) {
- printf("Foo ctor %d %d\n", Num, CN++);
- }
- ~foo() {
- printf("Foo dtor %d %d\n", Num, DN++);
- }
-} Constructor1(7); // Global with ctor to be called before main
-foo Constructor2(12);
-
-struct bar {
- ~bar() {
- printf("bar dtor\n");
- }
-} Destructor1; // Global with dtor
-
-int main() {
- printf("main\n");
- return 0;
-}