OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [20030505.c] - Blame information for rev 859

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 322 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-W -mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single" } */
3
/* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */
4
 
5
#define __vector __attribute__((vector_size(8)))
6
 
7
typedef float                   __vector __ev64_fs__;
8
 
9
__ev64_opaque__ *p1;
10
__ev64_fs__ *p2;
11
int *x;
12
 
13
extern void f (__ev64_opaque__ *); /* { dg-message "expected.*but argument is of type" } */
14
 
15
int main ()
16
{
17
        f (x);  /* { dg-warning "incompatible pointer type" } */
18
        f (p1);
19
        f (p2);
20
        return 0;
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.