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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
anon-1.c
blob
98a9ed71d46ba6244d81cbc5f9bbc9fcd5bc5cf8
1
/* Copyright (C) 2001 Free Software Foundation, Inc. */
2
3
/* Source: Neil Booth, 4 Nov 2001, derived from PR 2820 - field lookup in
4
nested anonymous entities was broken. */
5
6
struct
7
{
8
int
x
;
9
struct
10
{
11
int
a
;
12
union
13
{
14
int
b
;
15
};
16
};
17
}
foo
;
18
19
int
20
main
(
int
argc
,
char
*
argv
[])
21
{
22
foo
.
b
=
6
;
23
foo
.
a
=
5
;
24
25
if
(
foo
.
b
!=
6
)
26
abort
();
27
28
return
0
;
29
}