summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/t42.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/t42.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/t42.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/t42.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/t42.C
new file mode 100755
index 0000000..5545994
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/t42.C
@@ -0,0 +1,17 @@
+extern "C" void abort ();
+
+struct A {
+ struct stat {
+ int x;
+ stat (int j) { abort (); }
+ };
+ static int stat (double d) { return 0; } // gets bogus error - cfront takes it
+ static int zap () {
+ stat (0);
+ return stat (1); // gets bogus error - this should work
+ }
+};
+
+int main () {
+ return A::zap ();
+}