This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++ PATCH] Fix udlit-char-template-neg.C test
- From: Marek Polacek <polacek at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Paolo Carlini <paolo dot carlini at oracle dot com>
- Date: Wed, 22 May 2019 17:45:07 -0400
- Subject: [C++ PATCH] Fix udlit-char-template-neg.C test
I noticed this test fails since r271492. Probably obvious, but...
Tested on x86_64-linux, ok for trunk?
2019-05-22 Marek Polacek <polacek@redhat.com>
* g++.dg/cpp1y/udlit-char-template-neg.C: Expect the error on a
different line. Check the column number too.
diff --git gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C
index e77ea45890d..6295256b53d 100644
--- gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C
+++ gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C
@@ -2,7 +2,7 @@
template<typename CharT, CharT... String>
int
- operator"" _script()
- { return 42; } // { dg-error "literal operator template|has invalid parameter list" }
+ operator"" _script() // { dg-error "3:literal operator template|has invalid parameter list" }
+ { return 42; }
int i = "hi!"_script;