aboutsummaryrefslogtreecommitdiff
path: root/test/Index/index-kernel-invocation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-21 20:11:54 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-21 20:11:54 +0000
commitd6277fb9e0353edffc0d6c8655a65542c08cf6f1 (patch)
treee9148a353f1ad11aaf9b1692b1e073d6e130907d /test/Index/index-kernel-invocation.cpp
parentb7824d9919c3588e898c22f47a5248f10a7a084d (diff)
[driver] When creating the compiler invocation out of command-line
arguments, force use of clang frontend for the driver. Fixes rdar://11356765. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/index-kernel-invocation.cpp')
-rw-r--r--test/Index/index-kernel-invocation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Index/index-kernel-invocation.cpp b/test/Index/index-kernel-invocation.cpp
new file mode 100644
index 0000000000..dba8e6b91a
--- /dev/null
+++ b/test/Index/index-kernel-invocation.cpp
@@ -0,0 +1,4 @@
+// RUN: c-index-test -index-file -arch i386 -mkernel %s | FileCheck %s
+
+// CHECK: [indexDeclaration]: kind: function | name: foobar
+void foobar(void);