* gcc.dg/20030218-1.c: New.

From-SVN: r63089
This commit is contained in:
Aldy Hernandez 2003-02-19 04:30:10 +00:00 committed by Aldy Hernandez
parent 860c9ea661
commit 67aa8289e8
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-02-18 Aldy Hernandez <aldyh@redhat.com>
* gcc.dg/20030218-1.c: New.
2003-02-18 Richard Henderson <rth@redhat.com>
* gcc.dg/attr-invalid.c: Allow __used__ on static data.

View File

@ -0,0 +1,16 @@
/* { dg-do compile { target powerpc-*-eabi* } } */
/* { dg-options "-mcpu=8540" } */
/* Test vectors that can interconvert without a cast. */
int vint __attribute__((mode(V2SI)));
int vshort __attribute__((mode(V4HI)));
int vfloat __attribute__((mode(V2SF)));
int
main (void)
{
vint = vfloat;
vshort = vint;
vfloat = vshort; /* { dg-error "incompatible types in assignment" } */
}