X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fnoncompile%2F930714-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fnoncompile%2F930714-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=bdbc13394b3cd0671ba6acd9347b93abdcfcd41d;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/noncompile/930714-1.c b/gcc/testsuite/gcc.dg/noncompile/930714-1.c deleted file mode 100644 index bdbc1339..00000000 --- a/gcc/testsuite/gcc.dg/noncompile/930714-1.c +++ /dev/null @@ -1,25 +0,0 @@ -typedef union _yystype -{ - int i; - int *iptr; - int (*ifunc)(int); - void (*vfunc)(int); -} -YYSTYPE; - -extern int f1(int k); - -void test() -{ - YYSTYPE a; - int (*iptr)(int); - int foo[5]; - - a = f1; /* { dg-error "incompatible types" } */ - a = (YYSTYPE)f1; - a = (YYSTYPE)foo; - a = (YYSTYPE)(int *)foo; - iptr = f1; - a = iptr; /* { dg-error "incompatible types" } */ - a = (YYSTYPE)iptr; -}