[ASTImporter] Add test for PackExpansionExpr

Reviewers: a.sidorin, a_sidorin

Reviewed By: a_sidorin

Subscribers: martong, cfe-commits

Differential Revision: https://reviews.llvm.org/D51142

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340627 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Raphael Isemann 2018-08-24 18:01:56 +00:00
parent e3951d8886
commit 3ad50fd19c
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
template <typename... T>
void sink(T... a);
template <typename... T>
void packfuncT(T... a) {
sink(a...);
}
void f() {
packfuncT(1, 2, 3);
}

View File

@ -0,0 +1,12 @@
// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
// CHECK: PackExpansionExpr
// CHECK-SAME: '<dependent type>'
// CHECK-NEXT: DeclRefExpr
// CHECK-SAME: 'T...'
// CHECK-SAME: ParmVar
// CHECK-SAME: 'a'
void expr() {
f();
}