diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C b/gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C new file mode 100644 index 000000000..1bfd88974 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C @@ -0,0 +1,17 @@ +// { dg-do assemble } +// GROUPS passed redeclaration +class foo +{ +public: + int bar(int a); +}; + + +void bar(int &a); + +int foo::bar(int a) { + int a = 0; // Should this be an error ?// { dg-error "" } declaration.* + + bar(a); + return 0; +} |