summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t37.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t37.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.pt/t37.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t37.C b/gcc/testsuite/g++.old-deja/g++.pt/t37.C
new file mode 100755
index 0000000..434dadd
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/t37.C
@@ -0,0 +1,17 @@
+// Build don't link:
+
+class A {
+public:
+ A(int); // ERROR - referenced below
+ A(float); // ERROR - referenced below
+ ~A();
+}; // ERROR - synthesized copy ctor
+
+A::A() { // ERROR -
+}
+
+A::A(int) {
+}
+
+A::~A() {
+}