gcc/testsuite/g++.dg/diagnostic/long-short.C
raw| 1 | // { dg-options "-fdiagnostics-show-caret" } |
| 2 | |
| 3 | long short int a; // { dg-error "1:.long. and .short. specified together" } |
| 4 | /* { dg-begin-multiline-output "" } |
| 5 | long short int a; |
| 6 | ^~~~ ~~~~~ |
| 7 | { dg-end-multiline-output "" } */ |
| 8 | short long int b; // { dg-error "7:.long. and .short. specified together" } |
| 9 | /* { dg-begin-multiline-output "" } |
| 10 | short long int b; |
| 11 | ~~~~~ ^~~~ |
| 12 | { dg-end-multiline-output "" } */ |