diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/scoping.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.jason/scoping.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/scoping.C b/gcc/testsuite/g++.old-deja/g++.jason/scoping.C new file mode 100755 index 0000000..49715be --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/scoping.C @@ -0,0 +1,12 @@ +// PRMS Id: 3977 +// Bug: A member function is not hidden properly by a later use of its name. +// Build don't link: + +struct A { + void index (); +}; + +struct B: A { + int index; + B(): index(4) {} +}; |