annotate clang/test/Sema/uninit-det-order.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -Wuninitialized -fsyntax-only %s 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 void pr14901(int a) {
anatofuz
parents:
diff changeset
4 int b, c;
anatofuz
parents:
diff changeset
5 a = b;
anatofuz
parents:
diff changeset
6 a = c;
anatofuz
parents:
diff changeset
7 }
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // CHECK: 5:8: warning: variable 'b' is uninitialized when used here
anatofuz
parents:
diff changeset
10 // CHECK: 4:9: note: initialize the variable 'b' to silence this warning
anatofuz
parents:
diff changeset
11 // CHECK: 6:8: warning: variable 'c' is uninitialized when used here
anatofuz
parents:
diff changeset
12 // CHECK: 4:12: note: initialize the variable 'c' to silence this warning
anatofuz
parents:
diff changeset
13