* g++.old-deja/g++.pt/overload8.C: New test.
From-SVN: r24072
This commit is contained in:
parent
10e209e304
commit
b0e3f98f89
@ -1,5 +1,7 @@
|
||||
1998-12-03 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* g++.old-deja/g++.pt/overload8.C: New test.
|
||||
|
||||
* g++.old-deja/g++.pt/overload7.C: New test.
|
||||
|
||||
* g++.old-deja/g++.pt/spec20.C: ERROR marks were bogus
|
||||
|
12
gcc/testsuite/g++.old-deja/g++.pt/overload8.C
Normal file
12
gcc/testsuite/g++.old-deja/g++.pt/overload8.C
Normal file
@ -0,0 +1,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; }
|
Loading…
Reference in New Issue
Block a user