On 10/28/2013 03:51 AM, Ed Smith-Rowland wrote: > Here is an implementation for C++14 digit separators (single quote). > > It's still testing on x86_64-linux but I wanted to give folks a chance > to check it out. > > Ed > > Index: gcc/testsuite/g++.dg/cpp1y/digit-sep-neg.C > =================================================================== > --- gcc/testsuite/g++.dg/cpp1y/digit-sep-neg.C (revision 0) > +++ gcc/testsuite/g++.dg/cpp1y/digit-sep-neg.C (working copy) > @@ -0,0 +1,17 @@ > +// { dg-options -std=c++1y } > + > +#define assert(E) if(!(E))__builtin_abort(); > + > +int > +main() > +{ > + (1048576 == 1048''576); > + (1048576 == 0X'100000); > + (1048576 == 0x'100000); > + (1048576 == 0'004'000'000); > + (1048576 == 0B100000000000000000000); > + (1048576 == 0b0001'0000'0000'0000'0000'0000); > + > + (1.'602'176'565e-19 == 1.602176565e-19); > + (1.602'176'565e'-19 == 1.602176565e-19); > +} These tests seem to be missing the 'assert' there.
-- VZ
signature.asc
Description: OpenPGP digital signature