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

unsigned int foo (int n)
{
  return ~((unsigned int)~n);
}

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