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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
crash14.C
blob
e7920588f5027799bdfbb37c3aa6fd73e839f15e
1
// { dg-do assemble }
2
// GROUPS passed old-abort
3
extern "C" int printf (const char *, ...);
4
5
6
class cl
7
{
8
int i;
9
public:
10
cl(int j = 0) {i = j;}
11
int get_i() {return i;}
12
};
13
14
int
15
main()
16
{
17
cl ob[3] = {1, 2, 3};
18
int i;
19
20
for(i=0; i<3; i++)
21
printf("%d\n", ob[i].get_i());
22
23
return 0;
24
}