1// Copyright (c) 2012 Google Inc. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Should trigger C6001: using uninitialized memory <variable> for |i|.
6int f(bool b) {
7  int i;
8  if (b)
9    i = 0;
10  return i;
11}
12
13int main() {}
14