summaryrefslogtreecommitdiffstats
path: root/clang/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
commita1c728438c44ae9727d6bbedc4d1dcfdacb95122 (patch)
tree315e50806957dea9fe498e569a213ad4c95da44b /clang/tools/c-index-test/c-index-test.c
parent4bd7875b9cf4e5a2f68b554db0456200a97b4280 (diff)
downloadbcm5719-llvm-a1c728438c44ae9727d6bbedc4d1dcfdacb95122.tar.gz
bcm5719-llvm-a1c728438c44ae9727d6bbedc4d1dcfdacb95122.zip
Lot's of little changes to get the C-based indexing API going...
Work in progress. llvm-svn: 80367
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
new file mode 100644
index 00000000000..71bdcc5c64d
--- /dev/null
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud