view gcc/testsuite/g++.dg/warn/pr13358-3.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++/13358: g++ should accept a long long constant sans LL suffix
// if -Wno-long-long is in use
// { dg-do compile { target c++11 } }
// { dg-require-effective-target int32plus } 
// { dg-options "-pedantic-errors" }


void use_longlong ()
{
  unsigned long long x1, x2, x3; 
  // make sure it's ok with hex, decimal and octal
  x1 = 0x1b27da572ef3cd86;
  x2 = 1956772631100509574;
  x3 = 0154476645345674746606;
}

void use_longlong2 ()
{
  unsigned long long x1, x2, x3; 
  // make sure it's ok with hex, decimal and octal
  x1 = 0x1b27da572ef3cd86LL;
  x2 = 1956772631100509574LL;
  x3 = 0154476645345674746606LL;
}