repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
t34a.C
blob
be082876b58b0323ab65e4029d5a7825a7cb2e66
1
// { dg-do assemble }
2
3
struct A {
4
int operator[] (int);
5
};
6
7
//int A::operator[] (int);
8
9
int A::operator[] (int j)
10
{
11
return j * j;
12
}
13
14
extern A a;
15
16
int q () { return a[99]; }