Commit 67aa8289 by Aldy Hernandez Committed by Aldy Hernandez

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

From-SVN: r63089
parent 860c9ea6
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.
......
/* { 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" } */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment