]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.robertl/eb69.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb69.C
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb69.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb69.C
deleted file mode 100644 (file)
index 2daa5fe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Test that g++ complains about referring to a builtin type in a
-// mem-initializer.
-// Contributed by Kevin Buhr <buhr@stat.wisc.edu>
-
-int r = 0;
-
-struct foo {                   // ERROR - candidate
-  foo(int x) { r = 1; }                // ERROR - candidate
-};
-
-struct bar : foo {
-  typedef int an_int;
-  bar() : bar::an_int(3) {}    // ERROR - not a base
-};
-
-int
-main() {
-  bar b;
-  return r;
-}