PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / diagnostic-ranges-1.c
blob369c0b3990067f4bb619891a175a94e4a30f154b
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-show-caret -Wall" } */
4 void test_range_of_unused_variable (void)
6 int redundant; /* { dg-warning "unused variable" } */
7 /* { dg-begin-multiline-output "" }
8 int redundant;
9 ^~~~~~~~~
10 { dg-end-multiline-output "" } */