repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
builtin-constant.c
blob
9e5bfb8bfe80496aa5812ace3de848d02edc4ecb
1
/* PR optimization/8423. */
2
3
#define btest(x) __builtin_constant_p(x) ?
"1"
:
"0"
4
5
#ifdef __OPTIMIZE__
6
void
7
foo
(
char
*
i
)
8
{
9
if
(*
i
==
'0'
)
10
abort
();
11
}
12
#else
13
void
14
foo
(
char
*
i
)
15
{
16
}
17
#endif
18
19
int
20
main
(
void
)
21
{
22
int
size
=
sizeof
(
int
);
23
foo
(
btest
(
size
));
24
foo
(
btest
(
size
));
25
exit
(
0
);
26
}