aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/overload8.C
blob: 9f38a5cb256a184d9d298a695abfaa05d2c0c3d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Build don't link:

// Simplified from bug report by Tim Rowley <tor@cs.brown.edu>

struct baz;

void operator*(baz&, double);

template <class T> inline T operator*(double s, const T &p)
  ; // gets bogus error - must have argument of class type - XFAIL *-*-*

void m(baz& a) { a * .5; }