summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20010604-1.c
blob: 122cdd5cc7c322c44007e0ae6fcff08668fca9c0 (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
/*
   20010604-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

#include <stdbool.h>

int func (int a, int b, int c, _Bool d, _Bool e, _Bool f, char g)
{
  if (g != 1 || d != true || e != true || f != true) ASSERT (0);
  return a + b + c;
}

void
testTortureExecute (void)
{
  if (func (1, 2, -3, true, true, true, '\001'))
    ASSERT (0);
  return;
}