Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/c-c++-common/pr41779.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/c-c++-common/pr41779.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/c-c++-common/pr41779.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,6 +1,6 @@ /* PR41779: Wconversion cannot see through real*integer promotions. */ /* { dg-do compile } */ -/* { dg-skip-if "doubles are floats" { "avr-*-*" } } */ +/* { dg-skip-if "doubles are floats" { avr-*-* } } */ /* { dg-options "-std=c99 -Wconversion" { target c } } */ /* { dg-options "-Wconversion" { target c++ } } */ /* { dg-require-effective-target large_double } */ @@ -27,7 +27,7 @@ float f5(float x, int y) { - return x * y; /* { dg-warning "conversion" } */ + return x * y; /* { dg-warning "conversion" "" { target int_eq_float } } */ } double c1(float x, unsigned short y, int z) @@ -52,5 +52,5 @@ double c5(float x, int y, int z) { - return z ? x + x : y; /* { dg-warning "conversion" } */ + return z ? x + x : y; /* { dg-warning "conversion" "" { target int_eq_float } } */ }