summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20100209-1.c
blob: 0a655b21bfdc6ca03d7b6b4e0126980d5e962558 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
20100209-1.c from the execute part of the gcc torture tests.
*/

#include <testfwk.h>

int bar(int foo)
{
  return (int)(((unsigned long long)(long long)foo) / 8);
}

void
testTortureExecute (void)
{
  if (sizeof (long long) > sizeof (int)
      && bar(-1) != -1)
    ASSERT (0);
  return;
}