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] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* Test declaration specifiers.  Test cases that used to be handled in
/* Test declaration specifiers.  Test cases that used to be handled in
   a loop in grokdeclarator.  */
   a loop in grokdeclarator.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-std=gnu89" } */
/* { dg-options "-std=gnu89" } */
 
 
typedef int t;
typedef int t;
 
 
/* These should all be diagnosed, but only once, not for every
/* These should all be diagnosed, but only once, not for every
   identifier declared.  */
   identifier declared.  */
struct s0 int x0, /* { dg-error "two or more data types" } */
struct s0 int x0, /* { dg-error "two or more data types" } */
x1;
x1;
 
 
char union u0 x2, /* { dg-error "two or more data types" } */
char union u0 x2, /* { dg-error "two or more data types" } */
x3;
x3;
 
 
enum e0 struct s1 x4, /* { dg-error "two or more data types" } */
enum e0 struct s1 x4, /* { dg-error "two or more data types" } */
x5;
x5;
 
 
short short x6, /* { dg-error "duplicate" } */
short short x6, /* { dg-error "duplicate" } */
x7;
x7;
 
 
t int x8, /* { dg-error "two or more data types" } */
t int x8, /* { dg-error "two or more data types" } */
x9;
x9;
 
 
long long long x10, /* { dg-error "long long long" } */
long long long x10, /* { dg-error "long long long" } */
x11;
x11;
 
 

powered by: WebSVN 2.1.0

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