summaryrefslogtreecommitdiff
path: root/test/Import/pack-expansion-expr
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/pack-expansion-expr')
-rw-r--r--test/Import/pack-expansion-expr/Inputs/F.cpp11
-rw-r--r--test/Import/pack-expansion-expr/test.cpp12
2 files changed, 23 insertions, 0 deletions
diff --git a/test/Import/pack-expansion-expr/Inputs/F.cpp b/test/Import/pack-expansion-expr/Inputs/F.cpp
new file mode 100644
index 0000000000000..528451c855d85
--- /dev/null
+++ b/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/test/Import/pack-expansion-expr/test.cpp b/test/Import/pack-expansion-expr/test.cpp
new file mode 100644
index 0000000000000..3e9867b1a736e
--- /dev/null
+++ b/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();
+}