blob: 89876b28eab378770486c09c85c231a34b70d931 [file] [log] [blame]
Douglas Gregor94d96292011-01-19 20:34:17 +00001template<typename ...Args>
2int f(Args ...args) {
3 return sizeof...(args) + sizeof...(Args);
4}
5
Argyrios Kyrtzidis427964e2011-08-15 22:40:24 +00006void test() {
7 int a;
8 decltype(a) b;
9}
10
Richard Smith762bb9d2011-10-13 22:29:44 +000011// RUN: c-index-test -test-annotate-tokens=%s:1:1:5:1 -fno-delayed-template-parsing -std=c++11 %s | FileCheck %s
Douglas Gregor42b29842011-10-05 19:00:14 +000012// CHECK: Identifier: "args" [3:20 - 3:24] SizeOfPackExpr=args:2:15
Douglas Gregor94d96292011-01-19 20:34:17 +000013// CHECK: Identifier: "Args" [3:38 - 3:42] TypeRef=Args:1:22
Argyrios Kyrtzidis427964e2011-08-15 22:40:24 +000014
Richard Smith762bb9d2011-10-13 22:29:44 +000015// RUN: c-index-test -test-annotate-tokens=%s:8:1:9:1 -std=c++11 %s | FileCheck -check-prefix=CHECK-DECLTYPE %s
Argyrios Kyrtzidis427964e2011-08-15 22:40:24 +000016// CHECK-DECLTYPE: Identifier: "a" [8:12 - 8:13] DeclRefExpr=a:7:7