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 tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr42248.c
blob
bbb91b343b123628a9474227e06c9d200cd01074
1
typedef
struct
{
2
_Complex
double
a
;
3
_Complex
double
b
;
4
}
Scf10
;
5
6
Scf10 g1s
;
7
8
void
9
check
(
Scf10 x
,
_Complex
double
y
)
10
{
11
if
(
x
.
a
!=
y
)
__builtin_abort
();
12
}
13
14
void
15
init
(
Scf10
*
p
,
_Complex
double
y
)
16
{
17
p
->
a
=
y
;
18
}
19
20
int
21
main
()
22
{
23
init
(&
g1s
, (
_Complex
double
)
1
);
24
check
(
g1s
, (
_Complex
double
)
1
);
25
26
return
0
;
27
}