1/* { dg-do compile } */ 2 3__inline void foo(void) __attribute__((weak)); /* { dg-error "inline.*weak" } */ 4 5