Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / p18298.c
blob50589962e229059a03d5540b919eb96ab8d6a0d8
1 /* { dg-options "-fgnu89-inline" } */
3 #include <stdbool.h>
4 #include <stdlib.h>
5 extern void abort (void);
6 int strcmp (const char*, const char*);
7 char s[2048] = "a";
8 inline bool foo(const char *str) {
9 return !strcmp(s,str);
11 int main() {
12 int i = 0;
13 while(!(foo(""))) {
14 i ++;
15 s[0] = '\0';
16 if (i>2)
17 abort ();
19 return 0;