udlit-char-template-neg.C: Expect the error on a different line.
authorMarek Polacek <polacek@redhat.com>
Wed, 22 May 2019 22:56:00 +0000 (22:56 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 22 May 2019 22:56:00 +0000 (22:56 +0000)
* g++.dg/cpp1y/udlit-char-template-neg.C: Expect the error on a
different line.  Check the column number too.

From-SVN: r271530

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C

index 02321f0..d92eb8b 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2019-05-22  Uroš Bizjak  <ubizjak@gmail.com>
 
        * gcc.target/i386/vect-signbitf.c (dg-final): Improve
index e77ea45..d3d7121 100644 (file)
@@ -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" }
+  { return 42; }
 
 int i = "hi!"_script;