aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p701.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/p701.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p701.C34
1 files changed, 0 insertions, 34 deletions
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
index c222ea1e888..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.mike/p701.C
+++ /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();
-}