blob: f5fc9e1493e64c4ce0663f5a8a70bb4b7e63446c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// RUN: clang-cc -fsyntax-only -verify -pedantic -trigraphs %s
int x = 000000080; // expected-error {{invalid digit}}
int y = 0000\
00080; // expected-error {{invalid digit}}
float X = 1.17549435e-38F;
float Y = 08.123456;
// PR2252
#if -0x8000000000000000 // should not warn.
#endif
char c[] = {
'df', // expected-warning {{multi-character character constant}}
'\t',
'\\
t',
'??!' // expected-warning {{trigraph converted to '|' character}}
};
#pragma GCC diagnostic ignored "-Wmultichar"
char d = 'df'; // no warning.
|