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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [declspec-1.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test declaration specifiers.  Test cases that used to be handled in
2
   a loop in grokdeclarator.  */
3
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
4
/* { dg-do compile } */
5
/* { dg-options "-std=gnu89" } */
6
 
7
typedef int t;
8
 
9
/* These should all be diagnosed, but only once, not for every
10
   identifier declared.  */
11
struct s0 int x0, /* { dg-error "two or more data types" } */
12
x1;
13
 
14
char union u0 x2, /* { dg-error "two or more data types" } */
15
x3;
16
 
17
enum e0 struct s1 x4, /* { dg-error "two or more data types" } */
18
x5;
19
 
20
short short x6, /* { dg-error "duplicate" } */
21
x7;
22
 
23
t int x8, /* { dg-error "two or more data types" } */
24
x9;
25
 
26
long long long x10, /* { dg-error "long long long" } */
27
x11;

powered by: WebSVN 2.1.0

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