annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR c++/13358: g++ should accept a long long constant sans LL suffix
kono
parents:
diff changeset
2 // if -Wno-long-long is in use
kono
parents:
diff changeset
3 // { dg-do compile { target c++11 } }
kono
parents:
diff changeset
4 // { dg-require-effective-target int32plus }
kono
parents:
diff changeset
5 // { dg-options "-pedantic-errors" }
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 void use_longlong ()
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 unsigned long long x1, x2, x3;
kono
parents:
diff changeset
11 // make sure it's ok with hex, decimal and octal
kono
parents:
diff changeset
12 x1 = 0x1b27da572ef3cd86;
kono
parents:
diff changeset
13 x2 = 1956772631100509574;
kono
parents:
diff changeset
14 x3 = 0154476645345674746606;
kono
parents:
diff changeset
15 }
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 void use_longlong2 ()
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 unsigned long long x1, x2, x3;
kono
parents:
diff changeset
20 // make sure it's ok with hex, decimal and octal
kono
parents:
diff changeset
21 x1 = 0x1b27da572ef3cd86LL;
kono
parents:
diff changeset
22 x2 = 1956772631100509574LL;
kono
parents:
diff changeset
23 x3 = 0154476645345674746606LL;
kono
parents:
diff changeset
24 }