]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.mike/explicit2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / explicit2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/explicit2.C b/gcc/testsuite/g++.old-deja/g++.mike/explicit2.C
deleted file mode 100644 (file)
index a2077bf..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link:
-
-class string {
-public:
-  string(const char*) { } 
-  explicit string(int size) { }
-}; 
-
-void foo(string) { }
-
-string bar() {
-  foo("hello");                // ok
-  foo(string(2));      // ok
-  foo(2);              // ERROR - no implicit conversion from int to string
-  string x = 2;                // ERROR - no implicit conversion from int to string
-  string y(2);         // ok
-  foo((string)2);      // ok
-  return 2;            // ERROR - no implicit conversion from int to string
-}
-
-class A : string {
-public:
-  A() : string(2) { }  // ok
-};