1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-show-caret -Wall" } */
3 
test_range_of_unused_variable(void)4 void test_range_of_unused_variable (void)
5 {
6   int redundant; /* { dg-warning "unused variable" } */
7 /* { dg-begin-multiline-output "" }
8    int redundant;
9        ^~~~~~~~~
10    { dg-end-multiline-output "" } */
11 }
12