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

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

int
foo(int bits_per_pixel, int depth)
{
  if ((bits_per_pixel | depth) == 1)
    ASSERT (0);
  return bits_per_pixel;
}

void
testTortureExecute (void)
{
  if (foo(2, 0) != 2)
    ASSERT (0);
  return;
}