blob: 14647a3056036b3b1846ee31c34a4bf90ccfb1e4 [file] [log] [blame]
// Build don't run:
// GROUPS passed templates membertemplates
extern "C" int printf(const char*, ...);
struct S {
template <class T>
void operator+(T);
};
template <class T>
void S::operator+(T)
{
printf("Hello, world.\n");
}
int main()
{
S s;
s + 3;
s + s;
s.operator+("Hi");
}