diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/sibcall1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/sibcall1.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C b/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C new file mode 100644 index 000000000..fa9e37b37 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C @@ -0,0 +1,14 @@ +// { dg-do run } +// { dg-options "-O2" } + +#include <iostream> + +std::ostream& foo (const char *x, std::ostream &y) +{ + return y << "" << x; +} + +int main () +{ + foo ("", std::cout); +} |