Debian Codegraph @

gcc/testsuite/gcc.dg/plugin/diagnostic-test-text-art-ascii-color.c

raw
1 /* { dg-additional-options "-fdiagnostics-text-art-charset=ascii -fdiagnostics-color=always" } */
2
3 int non_empty;
4
5 /* { dg-begin-multiline-output "" }
6
7 A
8 B
9 C
10
11 { dg-end-multiline-output "" } */
12
13 /* { dg-begin-multiline-output "" }
14
15 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜ 
16 ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟ 
17         
18         
19         
20         
21 ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙ 
22 ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖ 
23
24 { dg-end-multiline-output "" } */
25
26 /* { dg-begin-multiline-output "" }
27
28 +--+
29 |🙂|
30 +--+
31
32 { dg-end-multiline-output "" } */
33
34 /* { dg-begin-multiline-output "" }
35
36 +-------+-----+---------------+---------------------+-----------------------+-----------------------+
37 |Offsets|Octet| 0 | 1 | 2 | 3 |
38 +-------+-----+-+-+-+-+-+-+-+-+-+-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
39 | Octet | Bit |0|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|30|31|
40 +-------+-----+-+-+-+-+-+-+-+-+-+-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
41 | 0 | 0 |Version| IHL | DSCP | ECN | Total Length |
42 +-------+-----+-------+-------+---------------+-----+--------+--------------------------------------+
43 | 4 | 32 | Identification | Flags | Fragment Offset |
44 +-------+-----+---------------+---------------------+--------+--------------------------------------+
45 | 8 | 64 | Time To Live | Protocol | Header Checksum |
46 +-------+-----+---------------+---------------------+-----------------------------------------------+
47 | 12 | 96 | Source IP Address |
48 +-------+-----+-------------------------------------------------------------------------------------+
49 | 16 | 128 | Destination IP Address |
50 +-------+-----+-------------------------------------------------------------------------------------+
51 | 20 | 160 | |
52 +-------+-----+ |
53 | ... | ... | Options |
54 +-------+-----+ |
55 | 56 | 448 | |
56 +-------+-----+-------------------------------------------------------------------------------------+
57
58 { dg-end-multiline-output "" } */