aboutsummaryrefslogtreecommitdiff
path: root/test/Index/index-file.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-01 19:08:08 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-01 19:08:08 +0000
commit754a5d14d58213beb0502720e66fef8fa86a21cf (patch)
tree80813fa8ab38d96a80f034c50ef02f6ffe433aa7 /test/Index/index-file.cpp
parentd579dd5cc43e657647f38be5dd47c8974cd43108 (diff)
[libclang] Fix indexing type alias declarations. rdar://11878406
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/index-file.cpp')
-rw-r--r--test/Index/index-file.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Index/index-file.cpp b/test/Index/index-file.cpp
new file mode 100644
index 0000000000..bf2d62c556
--- /dev/null
+++ b/test/Index/index-file.cpp
@@ -0,0 +1,6 @@
+using MyTypeAlias = int;
+
+// RUN: c-index-test -index-file %s > %t
+// RUN: FileCheck %s -input-file=%t
+
+// CHECK: [indexDeclaration]: kind: type-alias | name: MyTypeAlias | {{.*}} | loc: 1:7