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
[committed][RISC-V][PR target/114139] Verify we have a CONST_INT before extracting...
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20000801-3.c
blob
6982652c5d7e736832c5aec9707a4dbe3a538105
1
/* Origin: PR c/92 from Simon Marlow <t-simonm@microsoft.com>, adapted
2
to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
3
*/
4
5
void
abort
(
void
);
6
void
exit
(
int
);
7
8
typedef
struct
{ }
empty
;
9
10
typedef
struct
{
11
int
i
;
12
empty e
;
13
int
i2
;
14
}
st
;
15
16
st s
= { .
i
=
0
, .
i2
=
1
};
17
18
extern
void
abort
(
void
);
19
20
int
21
main
(
void
)
22
{
23
if
(
s
.
i2
==
1
)
24
exit
(
0
);
25
else
26
abort
();
27
}