diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/overload9.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/overload9.C | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/overload9.C b/gcc/testsuite/g++.old-deja/g++.other/overload9.C new file mode 100644 index 000000000..59457e18f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/overload9.C @@ -0,0 +1,32 @@ +// { dg-do run } +struct T { ~T() {} }; + +int g () +{ + foo: + T t; + int f(int); + bar: + T t2; + int f(double); + return f(3); +} + + +int f(int) +{ + return 0; +} + + +int f(double) +{ + return 1; +} + + +int main() +{ + return g(); +} + |