summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr35231.c
blob: e0327eb5f8a549fb857ff179ff7f98d6dd7a706d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern void abort(void);

int __attribute__((noinline))
foo(int bits_per_pixel, int depth)
{
  if ((bits_per_pixel | depth) == 1)
    abort ();
  return bits_per_pixel;
}

int main()
{
  if (foo(2, 0) != 2)
    abort ();
  return 0;
}