URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wall -std=gnu89" } */
|
/* { dg-options "-Wall -std=gnu89" } */
|
/* This testcase should fail since we're redefining foo in the same
|
/* This testcase should fail since we're redefining foo in the same
|
translation unit. */
|
translation unit. */
|
extern inline int foo(void) { return 0; }
|
extern inline int foo(void) { return 0; }
|
inline int foo (void) { return 1; } /* { dg-error "previous definition of" } */
|
inline int foo (void) { return 1; } /* { dg-error "previous definition of" } */
|
int foo (void) { return 2; } /* { dg-error "error: redefinition of" } */
|
int foo (void) { return 2; } /* { dg-error "error: redefinition of" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.