Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr82274-1.c @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR target/82274 */ /* { dg-do run } */ /* { dg-shouldfail "trapv" } */ /* { dg-options "-ftrapv" } */ int main () { #ifdef __SIZEOF_INT128__ volatile __int128 m = -(((__int128) 1) << (__CHAR_BIT__ * __SIZEOF_INT128__ / 2)); #else volatile long long m = -(1LL << (__CHAR_BIT__ * __SIZEOF_LONG_LONG__ / 2)); #endif m = m * m; return 0; }