comparison gcc/testsuite/gcc.dg/pr35264.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do run } */
2 /* { dg-options "-O1" } */
3 extern void abort(void);
4 long long __attribute__((noinline)) get(void)
5 {
6 return -2;
7 }
8 long long __attribute__((noinline)) get(void);
9 int __attribute__((noinline)) check(void)
10 {
11 long long lcn;
12
13 lcn = get();
14 if (lcn >= 0 || lcn == -1)
15 return 0;
16
17 return -1;
18 }
19 int main()
20 {
21 if (check() == 0)
22 abort();
23 return 0;
24 }