summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-scope-1.c
blob: 5fdd00b60be44e2fc2abf36ace1d6b57a594f5e3 (plain) (blame)
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
27
28
29
/*
   scope-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

int v = 3;

void f (void)
{
  int v = 4;
  {
    extern int v;
    if (v != 3)
      ASSERT (0);
  }
}

void
testTortureExecute (void)
{
  f ();
  return;
}