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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [pr48192.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3
/* { dg-require-effective-target powerpc_vsx_ok } */
4
/* { dg-options "-O3 -mcpu=power7 -std=gnu89" } */
5
 
6
/* Make sure that the conditional macros vector, bool, and pixel are not
7
   considered as being defined.  */
8
 
9
#ifdef bool
10
#error "bool is considered defined"
11
#endif
12
 
13
#ifdef vector
14
#error "vector is considered defined"
15
#endif
16
 
17
#ifdef pixel
18
#error "pixel is condsidered defined"
19
#endif
20
 
21
#if defined(bool)
22
#error "bool is considered defined"
23
#endif
24
 
25
#if defined(vector)
26
#error "vector is considered defined"
27
#endif
28
 
29
#if defined(pixel)
30
#error "pixel is condsidered defined"
31
#endif
32
 
33
#ifndef bool
34
#else
35
#error "bool is considered defined"
36
#endif
37
 
38
#ifndef vector
39
#else
40
#error "vector is considered defined"
41
#endif
42
 
43
#ifndef pixel
44
#else
45
#error "pixel is condsidered defined"
46
#endif
47
 
48
#define bool long double
49
bool pixel = 0;

powered by: WebSVN 2.1.0

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