summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/special/alias-2.c
blob: 4cc8ce150f11fa32d93b61470ebf7696c113d14a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR 3997 */
/* { dg-do run } */
/* { dg-require-alias "" } */

extern void abort (void);
extern void exit (int);

void foo(void)
{
  exit(0);
}

static void bar(void) __attribute__((alias("foo")));

int main()
{
  bar();
  abort ();
}