aboutsummaryrefslogtreecommitdiff
path: root/lldb/tools/lldb-perf/common/clang/main.cpp
blob: 318a26b2c281067dd2124e09eda113563bbfafbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdint.h>
#include <stdio.h>
#include <vector>

namespace {
struct Foo {
  int i;
  int j;
};
void doit(const Foo &foo) { printf("doit(%i)\n", foo.i); }
}
int main(int argc, char const *argv[], char const *envp[]) {
  std::vector<int> ints;
  for (int i = 0; i < 10; ++i)
    ints.push_back(i);
  printf("hello world\n");
  Foo foo = {12, 13};
  doit(foo);
  return 0;
}