summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/attr-weak-hidden-1a.c
blob: f6d3e9eae4b1b7679163f134a2debd87760a6828 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-require-weak "" } */
/* { dg-require-visibility "" } */
void abort (void);
int __attribute__((weak, visibility("hidden"))) foo (void) { return 1; }
int
main (void)
{
  if (foo ())
    abort ();
  return 0;
}