Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/long-short-colorization.C

raw
1 // Verify colorization of printing of declspec mismatches
2 // Use dg-*-multiline-output to avoid regexp interpretation.
3
4 // { dg-options "-fdiagnostics-color=always -fdiagnostics-show-caret" }
5
6 long short int a;
7 /* { dg-begin-multiline-output "" }
8 'long' and 'short' specified together
9 long short int a;
10 ^~~~ ~~~~~
11 { dg-end-multiline-output "" } */
12 short long int b;
13 /* { dg-begin-multiline-output "" }
14 'long' and 'short' specified together
15 short long int b;
16 ~~~~~ ^~~~
17 { dg-end-multiline-output "" } */
18
19 // Discard the remaining colorized output that confuses dejagnu.
20 // { dg-prune-output diagnostic/long-short-colorization.C }