summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20011115-1.c
blob: 17a35658e2b493389d34d33fd04b4205656defec (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
25
26
extern void exit (int);

static inline int
foo (void)
{
#ifdef __OPTIMIZE__
  extern int undefined_reference;
  return undefined_reference;
#else
  return 0;
#endif
}

static inline int
bar (void)
{
  if (foo == foo)
    return 1;
  else
    return foo ();
}

int main (void)
{
  exit (0);
}