summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20030203-1.c
blob: dd20784f8937b85cc3ff7b7a787150f54357e652 (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
30
31
32
33
34
35
/*
   20030203-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#pragma disable_warning 85
#endif

void f(int);
int do_layer3(int single)
{
  int stereo1;

  if(single >= 0) /* stream is stereo, but force to mono */
    stereo1 = 1;
  else
    stereo1 = 2;
  f(single);

  return stereo1;
}

void
testTortureExecute (void)
{
  if (do_layer3(-1) != 2)
    ASSERT (0);
  return;
}

void f(int i) {}