]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/for1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / for1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/for1.C b/gcc/testsuite/g++.old-deja/g++.other/for1.C
deleted file mode 100644 (file)
index e737a41..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// Build don't link:
-
-int i;
-int j;
-
-struct S {
-  int operator()(int)
-    {
-      i = 1;
-      return i;
-    }
-
-  typedef int I;
-
-  void f() {
-    for (S I; false; )
-      ;
-    int k = I(3);
-  }
-};
-
-typedef int J;
-
-struct T {
-  int operator()(int)
-    {
-      j = 1;
-      return j;
-    }
-
-  void f() {
-    for (T J; false; )
-      ;
-    int k = J(3);
-  }
-};
-
-int main()
-{
-  S s;
-  s.f();
-  return 2 * i + j;
-}