aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/copy7.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/copy7.C30
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy7.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
deleted file mode 100644
index e2f4e7ac286..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
+++ /dev/null
@@ -1,30 +0,0 @@
-// GROUPS passed copy-ctors
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-void die () { printf ("FAIL\n"); exit (1); }
-
-class B {
-public:
- B() {}
- B(const B &) { printf ("PASS\n"); exit (0); };
-private:
- int x;
-};
-
-class A : public B {
-public:
- A() {}
-
- A(const B &) { printf ("FAIL\n"); exit (1); }
-};
-
-int
-main()
-{
- A a;
- A b(a);
-
- printf ("FAIL\n");
- return 0;
-}