blob: 4847e783c82832be3992d7b1a65703ba01cc9013 [file] [log] [blame]
/*
* { dg-do compile }
* { dg-options "-std=c23" }
*/
// conflicting types via linkage
extern struct foo { int x; } x;
extern struct bar { float x; } y;
void test(void)
{
extern struct foo { int x; } x;
extern struct bar { int x; } y; /* { dg-error "conflicting types" } */
}