summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-19 06:47:18 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-19 06:47:18 +0000
commitbcb88c83f7f3b6af46033f868a41fdb95ab58471 (patch)
tree4d94d9ea56f3e59272cf6d1b6db315608728e019 /gcc/testsuite/g++.dg/init
parent375fd1e226f147e8fb207fb51b7fa04ea1f61b9e (diff)
downloadgcc-bcb88c83f7f3b6af46033f868a41fdb95ab58471.tar.gz
2009-02-19 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r144284 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@144287 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/init')
-rw-r--r--gcc/testsuite/g++.dg/init/value7.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/init/value7.C b/gcc/testsuite/g++.dg/init/value7.C
new file mode 100644
index 00000000000..c79de4a6864
--- /dev/null
+++ b/gcc/testsuite/g++.dg/init/value7.C
@@ -0,0 +1,17 @@
+// PR c++/30111
+// { dg-do run }
+
+struct pod {
+ int i;
+};
+
+struct inherit : pod {
+ inherit() : pod() {}
+};
+
+int main()
+{
+ inherit i;
+ return i.i != 0;
+}
+