1 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic -trigraphs %s
3 int x
= 000000080; // expected-error {{invalid digit}}
6 00080; // expected-error {{invalid digit}}
10 float X
= 1.17549435e-38F
;
14 #if -0x8000000000000000 // should not warn.
19 'df', // expected-warning {{multi-character character constant}}
23 '??!', // expected-warning {{trigraph converted to '|' character}}
24 'abcd' // expected-warning {{multi-character character constant}}
29 int m1
= '\\\''; // expected-warning {{multi-character character constant}}
30 int m2
= '\\\\'; // expected-warning {{multi-character character constant}}
35 #pragma clang diagnostic ignored "-Wmultichar"
37 int d
= 'df'; // no warning.
38 int e
= 'abcd'; // still warn: expected-warning {{multi-character character constant}}
40 #pragma clang diagnostic ignored "-Wfour-char-constants"
42 int f
= 'abcd'; // ignored.
44 // rdar://problem/6974641
48 1.9e50f
, // expected-warning {{too large}}
49 1.9e-50f
, // expected-warning {{too small}}
52 -1.9e50f
, // expected-warning {{too large}}
53 -1.9e-50f
// expected-warning {{too small}}
58 1.9e500
, // expected-warning {{too large}}
59 1.9e-500, // expected-warning {{too small}}
62 -1.9e500
, // expected-warning {{too large}}
63 -1.9e-500 // expected-warning {{too small}}
67 double g
= 1e100000000
; // expected-warning {{too large}}