blob: 32880e2a2a17c6912e4ce50fcb752f8e9da46971 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-do preprocess } */
/* { dg-options -pedantic-errors } */
#if 'a' == 'a' && '\001' == 1 && '\x12' == 0x12
#error yes /* { dg-error "#error yes" "basic charconst recognition" } */
#endif
#if 'a' == L'a' && L'\xfeed' == 0xfeed
#error yes /* { dg-error "#error yes" "wide charconst recognition" } */
#endif
#if 'abcd' /* { dg-warning "multi-character character constant" "multi-character charconst" } */
#endif
#if 'abcdefghi' /* { dg-error "character constant (is )?too long" "charconst too long" } */
#endif
#if '' /* { dg-error "empty character constant" "empty charconst" } */
#endif
|