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