| 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 |
[m[K'[01m[K[01;32m[Klong[m[K[m[K' and '[01m[K[01;34m[Kshort[m[K[m[K' specified together |
| 9 |
[01;32m[Kl[m[K[01;32m[Ko[m[K[01;32m[Kn[m[K[01;32m[Kg[m[K [01;34m[Ks[m[K[01;34m[Kh[m[K[01;34m[Ko[m[K[01;34m[Kr[m[K[01;34m[Kt[m[K int a; |
| 10 |
[01;32m[K^[m[K[01;32m[K~[m[K[01;32m[K~[m[K[01;32m[K~[m[K [01;34m[K~[m[K[01;34m[K~[m[K[01;34m[K~[m[K[01;34m[K~[m[K[01;34m[K~[m[K |
| 11 |
{ dg-end-multiline-output "" } */ |
| 12 |
short long int b; |
| 13 |
/* { dg-begin-multiline-output "" } |
| 14 |
[m[K'[01m[K[01;32m[Klong[m[K[m[K' and '[01m[K[01;34m[Kshort[m[K[m[K' specified together |
| 15 |
[01;34m[Ks[m[K[01;34m[Kh[m[K[01;34m[Ko[m[K[01;34m[Kr[m[K[01;34m[Kt[m[K [01;32m[Kl[m[K[01;32m[Ko[m[K[01;32m[Kn[m[K[01;32m[Kg[m[K int b; |
| 16 |
[01;34m[K~[m[K[01;34m[K~[m[K[01;34m[K~[m[K[01;34m[K~[m[K[01;34m[K~[m[K [01;32m[K^[m[K[01;32m[K~[m[K[01;32m[K~[m[K[01;32m[K~[m[K |
| 17 |
{ dg-end-multiline-output "" } */ |
| 18 |
|
| 19 |
// Discard the remaining colorized output that confuses dejagnu. |
| 20 |
// { dg-prune-output diagnostic/long-short-colorization.C } |