[Lldb-commits] [lldb] r178176 - Added a source file needed for clang to compile in the lldb_perf_clang test.

Greg Clayton gclayton at apple.com
Wed Mar 27 13:13:09 PDT 2013


Author: gclayton
Date: Wed Mar 27 15:13:09 2013
New Revision: 178176

URL: http://llvm.org/viewvc/llvm-project?rev=178176&view=rev
Log:
Added a source file needed for clang to compile in the lldb_perf_clang test.


Added:
    lldb/trunk/tools/lldb-perf/common/clang/main.cpp

Added: lldb/trunk/tools/lldb-perf/common/clang/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-perf/common/clang/main.cpp?rev=178176&view=auto
==============================================================================
--- lldb/trunk/tools/lldb-perf/common/clang/main.cpp (added)
+++ lldb/trunk/tools/lldb-perf/common/clang/main.cpp Wed Mar 27 15:13:09 2013
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include <stdint.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;
+}





More information about the lldb-commits mailing list