summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/sizeof-pack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/sizeof-pack.cpp')
-rw-r--r--test/SemaTemplate/sizeof-pack.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaTemplate/sizeof-pack.cpp b/test/SemaTemplate/sizeof-pack.cpp
new file mode 100644
index 000000000000..4b0c883a24ac
--- /dev/null
+++ b/test/SemaTemplate/sizeof-pack.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -std=c++11 -verify %s
+// expected-no-diagnostics
+
+template<int &...Ns> int f() {
+ return sizeof...(Ns);
+}
+template int f<>();