OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge lto branch into trunk.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
p18298.c
1
#include <stdbool.h>
2
#include <stdlib.h>
3
int strcmp (const char*, const char*);
4
char s[2048] = "a";
5
inline bool foo(const char *str) {
6
return !strcmp(s,str);
7
}
8
int main() {
9
int i = 0;
10
while(!(foo(""))) {
11
i ++;
12
s[0] = '\0';
13
if (i>2)
14
abort ();
15
}
16
return 0;
17
}
18