1 /* { dg-require-weak "" } */ 2 /* { dg-require-visibility "" } */ 3 void abort (void); foo(void)4 int __attribute__((weak, visibility("hidden"))) foo (void) { return 1; } 5 int main(void)6 main (void) 7 { 8 if (foo ()) 9 abort (); 10 return 0; 11 } 12