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
/
20030216-1.c
blob
0256ae39ebb02bc17fd6114eb2243150b4cc937e
1
/* This test requires constant propagation of loads and stores to be
2
enabled. This is only guaranteed at -O2 and higher. Do not run
3
at -O1. */
4
/* { dg-skip-if "requires higher optimization" { *-*-* } "-O1" "" } */
5
6
void
link_error
(
void
);
7
const double
one
=
1.0
;
8
main
()
9
{
10
#ifdef __OPTIMIZE__
11
if
((
int
)
one
!=
1
)
12
link_error
();
13
#endif
14
return
0
;
15
}