Debian Codegraph @

clang/test/Sema/uninit-det-order.c

raw
1 // RUN: %clang_cc1 -Wuninitialized -fsyntax-only %s 2>&1 | FileCheck %s
2
3 void pr14901(int a) {
4 int b, c;
5 a = b;
6 a = c;
7 }
8
9 // CHECK: 5:8: warning: variable 'b' is uninitialized when used here
10 // CHECK: 4:9: note: initialize the variable 'b' to silence this warning
11 // CHECK: 6:8: warning: variable 'c' is uninitialized when used here
12 // CHECK: 4:12: note: initialize the variable 'c' to silence this warning
13