summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/compiler-flags/uninit.cc
blob: a9d5f5d4833131a2c33cc1fe4cd98b043d461a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (c) 2012 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Should trigger C6001: using uninitialized memory <variable> for |i|.
int f(bool b) {
  int i;
  if (b)
    i = 0;
  return i;
}

int main() {}