aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist-value4.C
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2019-05-07 17:31:12 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2019-05-07 17:31:12 +0000
commiteec33732a01453baedb2598c6997bad6a39d9e1e (patch)
tree15c52c0770d845cf0053e959a8b998cda7ddec25 /gcc/testsuite/g++.dg/cpp0x/initlist-value4.C
parent6ffaf63f736250e03afb9974fe5a32b50c69bdef (diff)
parenta91db438b583050311a6eb845d05775b14e09f1d (diff)
svn merge -r270931:270974 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branchredhat/gcc-8-branch
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/redhat/gcc-8-branch@270976 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/initlist-value4.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/initlist-value4.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist-value4.C b/gcc/testsuite/g++.dg/cpp0x/initlist-value4.C
new file mode 100644
index 00000000000..427147ff7f2
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist-value4.C
@@ -0,0 +1,12 @@
+// PR c++/88857
+// { dg-do compile { target c++11 } }
+
+class S { int a; };
+void foo (const S &, int);
+
+template <int N>
+void
+bar ()
+{
+ foo ({}); // { dg-error "too few arguments to function" }
+}