Mercurial > hg > CbC > CbC_llvm
view clang/test/Sema/uninit-det-order.c @ 169:1f21f60db75c
Added tag llvm10 for changeset 980e56f2e095
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 09:26:57 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -Wuninitialized -fsyntax-only %s 2>&1 | FileCheck %s void pr14901(int a) { int b, c; a = b; a = c; } // CHECK: 5:8: warning: variable 'b' is uninitialized when used here // CHECK: 4:9: note: initialize the variable 'b' to silence this warning // CHECK: 6:8: warning: variable 'c' is uninitialized when used here // CHECK: 4:12: note: initialize the variable 'c' to silence this warning