Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / pr35264.c
bloba332efc42ef180f51106bfabe47aa3b26c820598
1 /* { dg-do run } */
2 /* { dg-options "-O1" } */
3 extern void abort(void);
4 long long __attribute__((noinline)) get(void)
6 return -2;
8 long long __attribute__((noinline)) get(void);
9 int __attribute__((noinline)) check(void)
11 long long lcn;
13 lcn = get();
14 if (lcn >= 0 || lcn == -1)
15 return 0;
17 return -1;
19 int main()
21 if (check() == 0)
22 abort();
23 return 0;