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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [transparent-union-2.c] - Rev 154

Compare with Previous | Blame | View Log

/* PR c/20043 */
/* { dg-compile } */
/* { dg-options "-std=gnu99" } */
 
typedef union { int *i; long *l; } U
  __attribute__((transparent_union));
 
extern void f0 (U);		/* { dg-error "previous declaration" } */
extern void f0 (void *);	/* { dg-error "conflicting types" } */
 
extern void f1 (U);		/* { dg-error "previous declaration" } */
extern void f1 (unsigned long);	/* { dg-error "conflicting types" } */
 
extern void f2 (void *);	/* { dg-error "previous declaration" } */
extern void f2 (U);		/* { dg-error "conflicting types" } */
 
extern void f3 (unsigned long);	/* { dg-error "previous declaration" } */
extern void f3 (U);		/* { dg-error "conflicting types" } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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