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
2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
vect
/
pr22543.cc
blob
47c475a2fc0b4d36d74aa1d57a481a33d1851857
1
/* { dg-do compile } */
2
3
struct
A
4
{
5
int
i
,
j
;
6
7
A
() :
i
(),
j
() {}
8
~
A
() {}
9
10
operator
int
() {
return
0
; }
11
};
12
13
struct
B
14
{
15
A
foo
()
const
{
return
A
(); }
16
};
17
18
struct
X
{ ~
X
(); };
19
20
struct
C
21
{
22
C
();
23
24
int
z
[
4
];
25
};
26
27
C
::
C
()
28
{
29
for
(
int
i
=
0
;
i
<
4
; ++
i
)
30
z
[
i
]=
0
;
31
32
X x
;
33
34
for
(
int
i
=
0
;
i
<
4
; ++
i
)
35
int
j
=
B
().
foo
();
36
}
37