aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-07-14 17:31:08 -0400
committerMarek Polacek <polacek@redhat.com>2020-07-14 17:32:03 -0400
commit4358099049cbb8180c5354c6754b04ff0b330835 (patch)
tree4ba425b586c8040e66949b154ba9affb1722a791 /gcc
parentb2984e5ada65f417e8704d2e1e81ccd0272b5eb3 (diff)
downloadgcc-4358099049cbb8180c5354c6754b04ff0b330835.zip
gcc-4358099049cbb8180c5354c6754b04ff0b330835.tar.gz
gcc-4358099049cbb8180c5354c6754b04ff0b330835.tar.bz2
c++: Add new test [PR59978]
Fixed in r224162. That came without a test so adding this one. Previously, we issued a bogus "too few arguments to function" error. gcc/testsuite/ChangeLog: PR c++/59978 * g++.dg/cpp0x/vt-59978.C: New test.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/vt-59978.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/vt-59978.C b/gcc/testsuite/g++.dg/cpp0x/vt-59978.C
new file mode 100644
index 0000000..b7cdb19
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/vt-59978.C
@@ -0,0 +1,16 @@
+// PR c++/59978
+// { dg-do compile { target c++11 } }
+
+static void testFunc(int i1, int i2) {
+ (void)i1;
+ (void)i2;
+}
+
+template <int... Ints> void wrapper() {
+ testFunc(Ints...);
+}
+
+int main()
+{
+ wrapper<1, 2>();
+}