aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/copy9.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/copy9.C41
1 files changed, 0 insertions, 41 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
deleted file mode 100644
index 59fd2285419..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
+++ /dev/null
@@ -1,41 +0,0 @@
-// GROUPS passed copy-ctors
-#include <iostream.h>
-
-// token types: from state parser
-const int T_EOF = 257;
-const int T_ERROR = 258;
-const int T_Float = 259;
-const int T_Int = 260;
-const int T_ID = 261;
-const int T_STRING = 262;
-
-class Complex;
-class State;
-
-// token, from state parser.
-class ParseToken {
-public:
- int tok;
- union {
- char cval;
- const char *sval;
- int intval;
- double doubleval;
- Complex* Complexval;
- const State* s;
- };
- ParseToken () { tok = 0; intval = 0;}
-};
-
-int
-main () {
- ParseToken a;
- a.tok = T_Float;
- a.doubleval = 23.2;
- ParseToken b(a);
-
- if (b.doubleval == 23.2)
- cout << "PASS\n";
- else
- cout << "FAIL\n";
-}