annotate gcc/testsuite/gcc.dg/pr82274-1.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR target/82274 */
kono
parents:
diff changeset
2 /* { dg-do run } */
kono
parents:
diff changeset
3 /* { dg-shouldfail "trapv" } */
kono
parents:
diff changeset
4 /* { dg-options "-ftrapv" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 int
kono
parents:
diff changeset
7 main ()
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 #ifdef __SIZEOF_INT128__
kono
parents:
diff changeset
10 volatile __int128 m = -(((__int128) 1) << (__CHAR_BIT__ * __SIZEOF_INT128__ / 2));
kono
parents:
diff changeset
11 #else
kono
parents:
diff changeset
12 volatile long long m = -(1LL << (__CHAR_BIT__ * __SIZEOF_LONG_LONG__ / 2));
kono
parents:
diff changeset
13 #endif
kono
parents:
diff changeset
14 m = m * m;
kono
parents:
diff changeset
15 return 0;
kono
parents:
diff changeset
16 }