aboutsummaryrefslogtreecommitdiff
path: root/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-08-28 15:28:48 +0000
committerSteve Naroff <snaroff@apple.com>2009-08-28 15:28:48 +0000
commit50398199fb10e196a8d92fbf7a062dbe42ed88fd (patch)
tree3ede3f68610cf0fac022ddd89eac9fdec457c6da /tools/c-index-test/c-index-test.c
parent0dde18e5a713bc186062ca1ebc9967500b07faee (diff)
Lot's of little changes to get the C-based indexing API going...
Work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r--tools/c-index-test/c-index-test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
new file mode 100644
index 0000000000..71bdcc5c64
--- /dev/null
+++ b/tools/c-index-test/c-index-test.c
@@ -0,0 +1,12 @@
+
+#include "clang-c/Index.h"
+
+/*
+ * First sign of life:-)
+ */
+int main(int argc, char **argv) {
+ CXIndex Idx = clang_createIndex();
+ CXTranslationUnit TU = clang_createTranslationUnit(Idx, argv[1]);
+ clang_loadTranslationUnit(TU, 0);
+ return 1;
+}