summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C
blob: fa9e37b378c7ed8e2e78e1df4d5373064fc22d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}