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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr17188-1.c] - Blame information for rev 696

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

Line No. Rev Author Line
1 689 jeremybenn
/* A redefinition of an empty struct should be diagnosed the same as a
2
   redefinition of any other tag, but formerly only s2 and s4 were
3
   diagnosed.  Bug 17188.  */
4
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
5
/* { dg-do compile } */
6
/* { dg-options "" } */
7
 
8
struct s0 { }; /* { dg-message "note: originally defined here" } */
9
struct s0;
10
struct s0 { }; /* { dg-error "redefinition of 'struct s0'" } */
11
 
12
struct s1 { }; /* { dg-message "note: originally defined here" } */
13
struct s1 { }; /* { dg-error "redefinition of 'struct s1'" } */
14
 
15
struct s2 { int a : 1; }; /* { dg-message "note: originally defined here" } */
16
struct s2 { int a : 1; }; /* { dg-error "redefinition of 'struct s2'" } */
17
 
18
struct s3 { }; /* { dg-message "note: originally defined here" } */
19
struct s3 { int a : 1; }; /* { dg-error "redefinition of 'struct s3'" } */
20
 
21
struct s4 { int a : 1; }; /* { dg-message "note: originally defined here" } */
22
struct s4 { }; /* { dg-error "redefinition of 'struct s4'" } */
23
 
24
struct s5 { int a : 1; };
25
struct s5;
26
 
27
struct s6;
28
struct s6 { int a : 1; };
29
 
30
struct s7;
31
struct s7 { };

powered by: WebSVN 2.1.0

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