Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.jason/bool3.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
// { dg-do assemble } // From: panisset@cae.ca (Jean-Francois Panisset) // Subject: Problem with constant expressions for bitfields // Date: Mon, 6 Jun 94 14:00:01 EDT // Bug: g++ doesn't treat boolean true and false as constant values. enum E { e1,e2,e3,e4,e5 }; struct X { unsigned int bits : ((e5 > 4) ? 8 : 4); // { dg-bogus "" } constant expression };