X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2FWconversion.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2FWconversion.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=7cbcb6a4461b06d6b63c08a3db14305a84e0bf96;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/Wconversion.c b/gcc/testsuite/gcc.dg/Wconversion.c deleted file mode 100644 index 7cbcb6a4..00000000 --- a/gcc/testsuite/gcc.dg/Wconversion.c +++ /dev/null @@ -1,20 +0,0 @@ -/* Source: PR 137. - - We would not warn about passing an enum, but would warn about - passing a enum that was part of an array. TYPE_MAIN_VARIANT was - not used in the appropriate place in the warning code. */ - -/* { dg-do compile } */ -/* { dg-options -Wconversion } */ - -typedef enum { a } __attribute__((packed)) t; -void f(t x) {} - -int main(void) -{ - t x[2], y; - f(x[0]); /* { dg-bogus "different width" } */ - f(y); /* { dg-bogus "different width" } */ - return 0; -} -