diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr35430.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr35430.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr35430.c b/gcc/testsuite/gcc.dg/pr35430.c new file mode 100644 index 000000000..ab5e4cac8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr35430.c @@ -0,0 +1,10 @@ +/* PR c/35430 */ +/* { dg-do compile } */ +/* { dg-options "-Wsign-compare" } */ + +void +foo (__complex__ int i) +{ + i == 0u; + i == ~1u; /* { dg-warning "comparison between signed and unsigned integer expressions" } */ +} |