aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/torture/pr26630.c
blob: 96bab36a0f70aa411743f0a1279f0f31e2696607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do run } */
/* { dg-require-effective-target int32plus } */

extern void abort(void);
int main()
{
  int a1 = 40000;
  int c1 = ( ((int)(short)(a1-10000)) + 10000)*2;
  if (c1 != 80000)
    abort();
  return 0;
}