summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t34a.C
blob: be082876b58b0323ab65e4029d5a7825a7cb2e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }

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]; }