Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp1y/left-shift-1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/55095 // { dg-do compile { target c++14 } } // { dg-options "-Wshift-overflow=2" } // { dg-require-effective-target int32plus } #define INTM1 (sizeof (int) * __CHAR_BIT__ - 1) #define LLONGM1 (sizeof (long long) * __CHAR_BIT__ - 1) int i1 = 1 << INTM1; unsigned u1 = 1 << INTM1; long long int l1 = 1LL << LLONGM1;