Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/Wsign-compare-1.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/gcc.dg/Wsign-compare-1.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/gcc.dg/Wsign-compare-1.c Thu Feb 13 11:34:05 2020 +0900 @@ -5,7 +5,7 @@ unsigned int f0 (int x, unsigned int y) { - return x ? y : -1; /* { dg-warning "18:operand of \\?: changes signedness from 'int' to 'unsigned int'" } */ + return x ? y : -1; /* { dg-warning "18:operand of '\\?:' changes signedness from 'int' to 'unsigned int'" } */ /* { dg-begin-multiline-output "" } return x ? y : -1; ^~ @@ -15,7 +15,7 @@ unsigned int f1 (int xxx, unsigned int yyy) { - return xxx ? yyy : -1; /* { dg-warning "22:operand of \\?: changes signedness from 'int' to 'unsigned int'" } */ + return xxx ? yyy : -1; /* { dg-warning "22:operand of '\\?:' changes signedness from 'int' to 'unsigned int'" } */ /* { dg-begin-multiline-output "" } return xxx ? yyy : -1; ^~ @@ -25,7 +25,7 @@ unsigned int f2 (int xxx, unsigned int yyy) { - return xxx ? -1 : yyy; /* { dg-warning "16:operand of \\?: changes signedness from 'int' to 'unsigned int'" } */ + return xxx ? -1 : yyy; /* { dg-warning "16:operand of '\\?:' changes signedness from 'int' to 'unsigned int'" } */ /* { dg-begin-multiline-output "" } return xxx ? -1 : yyy; ^~ @@ -35,7 +35,7 @@ unsigned int f3 (unsigned int yyy) { - return yyy ?: -1; /* { dg-warning "17:operand of \\?: changes signedness from 'int' to 'unsigned int'" } */ + return yyy ?: -1; /* { dg-warning "17:operand of '\\?:' changes signedness from 'int' to 'unsigned int'" } */ /* { dg-begin-multiline-output "" } return yyy ?: -1; ^~ @@ -45,7 +45,7 @@ unsigned int f4 (int xxx, unsigned yyy, short uuu) { - return xxx ? yyy : uuu; /* { dg-warning "22:operand of \\?: changes signedness from 'short int' to 'unsigned int'" } */ + return xxx ? yyy : uuu; /* { dg-warning "22:operand of '\\?:' changes signedness from 'short int' to 'unsigned int'" } */ /* { dg-begin-multiline-output "" } return xxx ? yyy : uuu; ^~~ @@ -55,7 +55,7 @@ unsigned int f5 (int xxx, unsigned yyy, short uuu) { - return xxx ? uuu : yyy; /* { dg-warning "16:operand of \\?: changes signedness from 'short int' to 'unsigned int'" } */ + return xxx ? uuu : yyy; /* { dg-warning "16:operand of '\\?:' changes signedness from 'short int' to 'unsigned int'" } */ /* { dg-begin-multiline-output "" } return xxx ? uuu : yyy; ^~~ @@ -65,7 +65,7 @@ unsigned int f6 (int xxx, unsigned yyy, signed char uuu) { - return xxx ? yyy : uuu; /* { dg-warning "22:operand of \\?: changes signedness from 'signed char' to 'unsigned int'" } */ + return xxx ? yyy : uuu; /* { dg-warning "22:operand of '\\?:' changes signedness from 'signed char' to 'unsigned int'" } */ /* { dg-begin-multiline-output "" } return xxx ? yyy : uuu; ^~~ @@ -75,7 +75,7 @@ unsigned int f7 (int xxx, unsigned yyy, signed char uuu) { - return xxx ? uuu : yyy; /* { dg-warning "16:operand of \\?: changes signedness from 'signed char' to 'unsigned int'" } */ + return xxx ? uuu : yyy; /* { dg-warning "16:operand of '\\?:' changes signedness from 'signed char' to 'unsigned int'" } */ /* { dg-begin-multiline-output "" } return xxx ? uuu : yyy; ^~~