PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr13358.C
blob257616d2f296be584aa8a45bce00ef61b612d3c4
1 // PR c++/13358: g++ should accept a long long constant sans LL suffix
2 // if -Wno-long-long is in use.
3 // { dg-do compile }
4 // { dg-require-effective-target int32plus } 
5 // { dg-options "-std=c++98 -Wno-long-long -pedantic-errors" }
8 void use_longlong ()
10   unsigned long long x1, x2, x3; 
11   // make sure it's ok with hex, decimal and octal
12   x1 = 0x1b27da572ef3cd86;
13   x2 = 1956772631100509574;
14   x3 = 0154476645345674746606;
17 void use_longlong2 ()
19   unsigned long long x1, x2, x3; 
20   // make sure it's ok with hex, decimal and octal
21   x1 = 0x1b27da572ef3cd86LL;
22   x2 = 1956772631100509574LL;
23   x3 = 0154476645345674746606LL;