diff options
Diffstat (limited to 'deps/gyp/test/win/linker-flags/opt-icf.cc')
-rw-r--r-- | deps/gyp/test/win/linker-flags/opt-icf.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/deps/gyp/test/win/linker-flags/opt-icf.cc b/deps/gyp/test/win/linker-flags/opt-icf.cc new file mode 100644 index 0000000000..1f12156b7f --- /dev/null +++ b/deps/gyp/test/win/linker-flags/opt-icf.cc @@ -0,0 +1,29 @@ +// 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. + +void similar_function0(char* x) { + while (*x) { + ++x; + } +} + +void similar_function1(char* p) { + while (*p) { + ++p; + } +} + +void similar_function2(char* q) { + while (*q) { + ++q; + } +} + +int main() { + char* x = "hello"; + similar_function0(x); + similar_function1(x); + similar_function2(x); + return 0; +} |