diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/binding.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/binding.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/binding.C b/gcc/testsuite/g++.old-deja/g++.jason/binding.C new file mode 100644 index 000000000..1f297b76d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/binding.C @@ -0,0 +1,12 @@ +// { dg-do assemble } +// Bug: g++ only looks in the current temporary binding level for a name. + +struct T { ~T(); }; + +int main() +{ + foo: + T t; // { dg-error "" } redeclared + bar: + T t; // { dg-error "" } redeclaration +} |