summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr27116-2.c
blob: 9c748b245f5234760a1b957f3e34ba280476db6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do run } */

extern void abort(void);

int main (void)
{
    volatile long int n;
    n = -2;

    if ((-2147483647L - 1L) / (-n) != -1073741824L)
	abort ();
    return 0;
}