diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/warn/pr11492.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/warn/pr11492.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/warn/pr11492.C b/gcc-4.9/gcc/testsuite/g++.dg/warn/pr11492.C new file mode 100644 index 000000000..d23595f2d --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/warn/pr11492.C @@ -0,0 +1,12 @@ +// PR11492 +// { dg-do compile } +// { dg-options "-Wsign-compare" } +int main( void ) +{ + unsigned int a; + unsigned char b; + for ( a = 0, b = 2; a > b * 1000; a++ ) /* { dg-bogus "comparison between signed and unsigned integer" } */ + { ; } + + return 0; +} |