blob: 7d971094d1a3554f1c3594fc3d04796af8d68cdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Contributed by Douglas Gregor <doug.gregor@gmail.com>
template<class T> struct wrap {};
template<typename T> bool operator==(wrap<T>, wrap<T>);
template<typename T>
void g(T, wrap<wrap<int> > x)
{
bool b = x == x; // { dg-bogus "" "" { xfail *-*-* } }
}
template<typename T> void operator==(wrap<wrap<T> >, wrap<wrap<T> >);
void h()
{
wrap<wrap<int> > x;
g(17, x);
}
|