diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/scoping11.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/scoping11.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/scoping11.C b/gcc/testsuite/g++.old-deja/g++.jason/scoping11.C new file mode 100644 index 00000000000..870b9d5b566 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/scoping11.C @@ -0,0 +1,11 @@ +// Build don't link: + +void f (); +void g () +{ + int f; + { + void f (); + f (); // gets bogus error - trying to call integer + } +} |