]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.mike/p701.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p701.C
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p701.C b/gcc/testsuite/g++.old-deja/g++.mike/p701.C
deleted file mode 100644 (file)
index c222ea1..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Build don't link:
-// prms-id: 701
-
-extern "C" 
-{
-  int printf(const char *, ...);
-};
-
-
-void Munge(int& x) 
-{                              // ERROR - referenced below
-   x = 2;
-}
-
-
-class A 
-{
- public:
-   int i;
-   A(int x) : i(x) {}
-   void Safe() const;
-};
-
-void
-A::Safe() const 
-{
-   Munge(i);   // ERROR - should not be able to modify a const object
-}
-
-int main()
-{
-   const A a(1);
-   a.Safe();
-}