comparison gcc/testsuite/c-c++-common/Wtautological-compare-4.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 /* PR c++/67863 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wtautological-compare" } */
4
5 extern int e;
6 #define A (e ? 4 : 8)
7 #define B (e ? 4 : 8)
8
9 int
10 fn (void)
11 {
12 if (A <= B)
13 return 1;
14 return 0;
15 }