summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/offset1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/offset1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/offset1.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/offset1.C b/gcc/testsuite/g++.old-deja/g++.jason/offset1.C
new file mode 100644
index 000000000..a918baab8
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/offset1.C
@@ -0,0 +1,17 @@
+// { dg-do assemble }
+// PRMS Id: 5070 (testcase 1)
+
+struct foo {
+ foo(int x = 0) {}
+ int IsAlive(void) { return 1; }
+};
+
+struct xx {
+ int IsOk(int X);
+ foo a;
+};
+
+int xx::IsOk(int X)
+{
+ return ((xx::a).IsAlive()); // { dg-bogus "" }
+}