diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Import/pack-expansion-expr/Inputs/F.cpp | 11 | ||||
| -rw-r--r-- | clang/test/Import/pack-expansion-expr/test.cpp | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/clang/test/Import/pack-expansion-expr/Inputs/F.cpp b/clang/test/Import/pack-expansion-expr/Inputs/F.cpp new file mode 100644 index 00000000000..528451c855d --- /dev/null +++ b/clang/test/Import/pack-expansion-expr/Inputs/F.cpp @@ -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); +} diff --git a/clang/test/Import/pack-expansion-expr/test.cpp b/clang/test/Import/pack-expansion-expr/test.cpp new file mode 100644 index 00000000000..3e9867b1a73 --- /dev/null +++ b/clang/test/Import/pack-expansion-expr/test.cpp @@ -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(); +} |

