summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/mutable1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/mutable1.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.jason/mutable1.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/mutable1.C b/gcc/testsuite/g++.old-deja/g++.jason/mutable1.C
new file mode 100755
index 0000000..5311a87
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/mutable1.C
@@ -0,0 +1,11 @@
+struct X
+{
+ X () { }
+ mutable int x;
+};
+
+int main ()
+{
+ const X x;
+ x.x = 0;
+}