aboutsummaryrefslogtreecommitdiff
path: root/bolt/test/Inputs/multi-func.cpp
blob: 61c968fc27f987badfc571243b1b3ac8cd69957b (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
#include <iostream>

// Multiple functions to test selective dumping
int add(int a, int b) { return a + b; }

int multiply(int a, int b) { return a * b; }

int main_helper() {
  std::cout << "Helper function" << std::endl;
  return 42;
}

int main_secondary() { return add(5, 3); }

void other_function() { std::cout << "Other function" << std::endl; }

int main() {
  int result = add(10, 20);
  result = multiply(result, 2);
  main_helper();
  main_secondary();
  other_function();
  return result;
}