2011-01-20 04:34:17 +08:00
|
|
|
template<typename ...Args>
|
|
|
|
int f(Args ...args) {
|
|
|
|
return sizeof...(args) + sizeof...(Args);
|
|
|
|
}
|
|
|
|
|
2011-08-16 06:40:24 +08:00
|
|
|
void test() {
|
|
|
|
int a;
|
|
|
|
decltype(a) b;
|
|
|
|
}
|
|
|
|
|
2011-09-02 00:38:08 +08:00
|
|
|
// RUN: c-index-test -test-annotate-tokens=%s:1:1:5:1 -fno-delayed-template-parsing -std=c++0x %s | FileCheck %s
|
2011-01-20 04:34:17 +08:00
|
|
|
// CHECK: Identifier: "args" [3:20 - 3:24] UnexposedExpr=args:2:15
|
|
|
|
// CHECK: Identifier: "Args" [3:38 - 3:42] TypeRef=Args:1:22
|
2011-08-16 06:40:24 +08:00
|
|
|
|
|
|
|
// RUN: c-index-test -test-annotate-tokens=%s:8:1:9:1 -std=c++0x %s | FileCheck -check-prefix=CHECK-DECLTYPE %s
|
|
|
|
// CHECK-DECLTYPE: Identifier: "a" [8:12 - 8:13] DeclRefExpr=a:7:7
|