summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/alias-13.c
blob: a8390d45c31975eda81319e02dda66b95e438bc7 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-require-alias "" } */
/* { dg-options "-O2" } */
static void f (void) __attribute__((alias("g"))); static void g (void) __attribute__((alias("f"))); // { dg-error "part of alias cycle" "" }

void h ()
{
  f ();
}