diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/pr59940.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/pr59940.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/pr59940.c b/gcc-4.9/gcc/testsuite/gcc.dg/pr59940.c index b0fd17f..d81eaf7 100644 --- a/gcc-4.9/gcc/testsuite/gcc.dg/pr59940.c +++ b/gcc-4.9/gcc/testsuite/gcc.dg/pr59940.c @@ -3,11 +3,12 @@ /* { dg-options "-Wconversion -Woverflow" } */ int f (unsigned int); +typedef sitype __attribute__((mode(SI))); int g (void) { - int si = 12; + sitype si = 12; unsigned int ui = -1; /* { dg-warning "21:negative integer implicitly converted to unsigned type" } */ unsigned char uc; ui = si; /* { dg-warning "8:conversion" } */ |