summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/compiler-flags/warning-level2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/win/compiler-flags/warning-level2.cc')
-rw-r--r--deps/gyp/test/win/compiler-flags/warning-level2.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/deps/gyp/test/win/compiler-flags/warning-level2.cc b/deps/gyp/test/win/compiler-flags/warning-level2.cc
new file mode 100644
index 0000000000..9a26703180
--- /dev/null
+++ b/deps/gyp/test/win/compiler-flags/warning-level2.cc
@@ -0,0 +1,14 @@
+// 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.
+
+int f(int x) {
+ return 0;
+}
+
+int main() {
+ double x = 10.1;
+ // Cause a level 2 warning (C4243).
+ return f(x);
+ return 0;
+}