summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C b/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C
new file mode 100644
index 000000000..960c3e0dd
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C
@@ -0,0 +1,21 @@
+// { dg-do assemble }
+// prms-id: 13721
+
+class A
+{
+ public :
+ int a;
+};
+class B : public A
+{
+ public :
+ void cmp(int a, int b) {}
+ B(int a = 0)
+ {
+ cmp(A::a, a); //should not give warning
+ }
+};
+int main(void)
+{
+ return(1);
+}