Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr35430.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/35430 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Wsign-compare" } */ | |
4 | |
5 void | |
6 foo (__complex__ int i) | |
7 { | |
8 i == 0u; | |
9 i == ~1u; /* { dg-warning "comparison of integer expressions of different signedness" } */ | |
10 } |