Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/sibcall1.C

raw
1 // { dg-do run }
2 // { dg-options "-O2" }
3 // { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
4
5 #include <iostream>
6
7 std::ostream& foo (const char *x, std::ostream &y)
8 {
9 return y << "" << x;
10 }
11
12 int main ()
13 {
14 foo ("", std::cout);
15 }