blob: 65b657219d08c8c53c885843565ff8e2a96fdc3e [file] [log] [blame]
/* APPLE LOCAL file for-4_3 4134307 */
/* Check that you can't redefine a C99 inline function. */
/* { dg-do compile } */
/* { dg-options "-std=c99" } */
extern inline int func1 (void)
{ /* { dg-error "previous definition" } */
return 1;
}
inline int func1 (void)
{ /* { dg-error "redefinition" } */
return 1;
}
inline int func2 (void)
{ /* { dg-error "previous definition" } */
return 2;
}
inline int func2 (void)
{ /* { dg-error "redefinition" } */
return 2;
}