blob: 7d5aebf598a0be48b5a7c460991b6c56aba57ebc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Build don't link:
struct A {
int operator[] (int);
};
//int A::operator[] (int);
int A::operator[] (int j)
{
return j * j;
}
extern A a;
int q () { return a[99]; }
|