OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [spu/] [ea/] [cppdefine.c] - Blame information for rev 327

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 327 jeremybenn
/* Copyright (C) 2009 Free Software Foundation, Inc.
2
 
3
   This file is free software; you can redistribute it and/or modify it under
4
   the terms of the GNU General Public License as published by the Free
5
   Software Foundation; either version 3 of the License, or (at your option)
6
   any later version.
7
 
8
   This file is distributed in the hope that it will be useful, but WITHOUT
9
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11
   for more details.
12
 
13
   You should have received a copy of the GNU General Public License
14
   along with this file; see the file COPYING3.  If not see
15
   <http://www.gnu.org/licenses/>.  */
16
 
17
/* Test default __EA32__/__EA64__ define.  */
18
 
19
/* { dg-do compile } */
20
 
21
#if !defined (__EA32__) && !defined (__EA64__)
22
#error both __EA32__ and __EA64__ undefined
23
#endif
24
 
25
#if defined (__EA32__) && defined (__EA64__)
26
#error both __EA32__ and __EA64__ defined
27
#endif
28
 
29
#ifdef __EA32__
30
int x [ sizeof (__ea char *) == 4 ? 1 : -1 ];
31
#endif
32
 
33
#ifdef __EA64__
34
int x [ sizeof (__ea char *) == 8 ? 1 : -1 ];
35
#endif
36
 

powered by: WebSVN 2.1.0

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