]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/spu/ea/compile1.c
1 /* Copyright (C) 2009 Free Software Foundation, Inc.
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)
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
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/>. */
17 /* Valid __ea declarations. */
19 /* { dg-do compile } */
22 typedef __ea
int ea_int_t
;
23 typedef __ea
int *ea_int_star_t
;
31 extern __ea ea_int_t i4
; /* __ea qualifier permitted via typedef. */
32 extern int __ea __ea __ea dupe
; /* __ea duplicate permitted directly. */
43 /* Variable definitions. */
52 ppu
= (ea_int_t
*) spu
;
53 ppu
= (ea_int_star_t
) spu
;
61 ppu
= (__ea
int *) spu
;
67 int i
= sizeof (__ea
int);
75 int f5 (__ea
int *parm
)
77 static __ea
int local4
;
83 static inline __ea
void *f6 (__ea
void *start
)
94 __ea
int *f8 (__ea
int *x
)
96 register __ea
int *y
= x
;
101 long long f9 (__ea
long long x
[2])
108 static __ea outer_t o
;