summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr77587a.c
blob: 12e144560cb737f388a78d8b8417b6015191e5e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR target/77587 */
/* { dg-do compile } */
/* { dg-require-alias "" } */
/* { dg-require-weak-override "" } */

void
foo (long x, long y, long z)
{
}

void bar (long x, long y, long z) __attribute__ ((weak, alias ("foo")));

void
baz (long x, long y, long z)
{
  bar (0, 0, 0);
}

int
main ()
{
  baz (0, 0, 0);
  return 0;
}