1 /* { dg-do compile } */
2 /* { dg-options "-Wuninitialized -fdiagnostics-show-caret" } */
4 int test_uninit_1 (void)
6 int result_1
; /* { dg-message "declared here" } */
7 return result_1
; /* { dg-warning "uninitialized" } */
8 /* { dg-begin-multiline-output "" }
13 { dg-end-multiline-output "" } */
16 int test_uninit_2 (void)
18 int result_2
; /* { dg-message "declared here" } */
19 result_2
+= 3; /* { dg-warning "uninitialized" } */
20 /* { dg-begin-multiline-output "" }
25 { dg-end-multiline-output "" } */