]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/field2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / field2.C
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 (file)
index 5eb6755..0000000
+++ /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);
-}