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
/
zero-struct-2.c
blob
ed1d5a027b33c639a4ee4eb619dd6f0b404ea43e
1
void
abort
(
void
);
2
int
ii
;
3
typedef
struct
{}
raw_spinlock_t
;
4
typedef
struct
{
5
raw_spinlock_t raw_lock
;
6
}
spinlock_t
;
7
raw_spinlock_t
one_raw_spinlock
(
void
)
8
{
9
raw_spinlock_t raw_lock
;
10
ii
++;
11
return
raw_lock
;
12
}
13
int
main
(
void
)
14
{
15
spinlock_t lock
= (
spinlock_t
) { .
raw_lock
=
one_raw_spinlock
() };
16
if
(
ii
!=
1
)
17
abort
();
18
return
0
;
19
}
20