aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/loverload3.C
blob: c9cc3bfbe5789d0d4a91c7317f02e024730e308f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PRMS Id: 2010
// Bug: g++ doesn't deal with overloads involving C-language fns properly.
// Build don't link:

extern "C" double pow (double, double);
inline double pow (double d, int e) { return pow (d, (double) e); }

void foo () 
{
  pow (1.0, 1);
  pow (1.0, 1.0);
}