]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/overload11.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload11.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/overload11.C b/gcc/testsuite/g++.old-deja/g++.jason/overload11.C
deleted file mode 100644 (file)
index f5ed01e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// PRMS Id: 4697
-// Bug: g++ calls the non-const method for a const object.
-
-class A {
-public:
-  void foo(int &i) const { i = 0; }
-  void foo(int &i) { i = 1; }
-};
-
-int main()
-{
-  A a;
-  const A& b = a;
-  int i = 2;
-  b.foo (i);
-  return i;
-}