summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/linker-flags/opt-icf.cc
blob: 1f12156b7fc37ced85c1f59cf48f8ab92c242e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}