summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/field2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/field2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/field2.C20
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/field2.C b/gcc/testsuite/g++.old-deja/g++.other/field2.C
deleted file mode 100644
index 5eb67554fdf..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.other/field2.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// Test for proper handling of field calls.
-// Contributed by Jason Merrill <jason@cygnus.com>
-
-struct A {
- inline A* operator()() { return this; }
-};
-
-struct B {
- int i;
- union { A a; };
-};
-
-int
-main ()
-{
- B b;
- A* ap = &b.a;
- A* ap2 = b.a();
- return (ap != ap2);
-}