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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [transparent-union-2.c] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR c/20043 */
2
/* { dg-compile } */
3
/* { dg-options "-std=gnu99" } */
4
 
5
typedef union { int *i; long *l; } U
6
  __attribute__((transparent_union));
7
 
8
extern void f0 (U);             /* { dg-error "previous declaration" } */
9
extern void f0 (void *);        /* { dg-error "conflicting types" } */
10
 
11
extern void f1 (U);             /* { dg-error "previous declaration" } */
12
extern void f1 (unsigned long); /* { dg-error "conflicting types" } */
13
 
14
extern void f2 (void *);        /* { dg-error "previous declaration" } */
15
extern void f2 (U);             /* { dg-error "conflicting types" } */
16
 
17
extern void f3 (unsigned long); /* { dg-error "previous declaration" } */
18
extern void f3 (U);             /* { dg-error "conflicting types" } */

powered by: WebSVN 2.1.0

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