]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/lldb-perf/common/clang/main.cpp
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / tools / lldb-perf / common / clang / main.cpp
1 #include <stdio.h>
2 #include <stdint.h>
3 #include <vector>
4
5 namespace {
6     struct Foo
7     {
8         int i; int j;
9     };
10     void doit (const Foo &foo)
11     {
12         printf ("doit(%i)\n", foo.i);
13     }
14 }
15 int main (int argc, char const *argv[], char const *envp[])
16 {
17     std::vector<int> ints;
18     for (int i=0;i<10;++i)
19         ints.push_back(i);
20     printf ("hello world\n");
21     Foo foo = { 12, 13 };
22     doit (foo);
23     return 0;
24 }