Patchwork [testsuite] : Fix FAIL: obj-c++.dg/try-catch-13.mm -fgnu-runtime (test for errors, line 12)

login
register
mail settings
Submitter Uros Bizjak
Date April 1, 2013, 3:14 p.m.
Message ID <CAFULd4aJfpG_y0TFcSAh_5XgNuzCH1vv2-dR2crR0iWwb_2ZRQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/232764/
State New
Headers show

Comments

Uros Bizjak - April 1, 2013, 3:14 p.m.
Hello!

A part of an error has been demoted to a note recently.  Attached
patch fixes a testcase in the obj-c++ testsuite.

2013-04-01  Uros Bizjak  <ubizjak@gmail.com>

    * obj-c++.dg/try-catch-13.mm: Use dg-message for
    "initializing argument" note.

Tested on x86_64-pc-linux-gnu.

OK for mainline?

Uros.

Patch

Index: obj-c++.dg/try-catch-13.mm
===================================================================
--- obj-c++.dg/try-catch-13.mm	(revision 197296)
+++ obj-c++.dg/try-catch-13.mm	(working copy)
@@ -22,7 +22,7 @@ 
       typeof(q) k = 66;
       some_func (&j);
 /* { dg-error "invalid conversion" "" { target *-*-* } 23 } */ 
-/* { dg-error "initializing argument" "" { target *-*-* } 12 } */
+/* { dg-message "initializing argument" "" { target *-*-* } 12 } */
       some_func (&k);
     }
     @catch (id exc) {
@@ -39,7 +39,7 @@ 
 /* { dg-error "invalid conversion" "" { target *-*-* } 38 } */
 /* The following is disabled as it is already checked above and the testsuites seems 
    to count multiple different identical errors on the same line only once */
-/*  dg-error "initializing argument" "" { target *-*-* } 12  */
+/*  dg-message "initializing argument" "" { target *-*-* } 12  */
     }
     @catch (id exc) {
       @throw;
@@ -54,7 +54,7 @@ 
 /* { dg-error "invalid conversion" "" { target *-*-* } 53 } */
 /* The following is disabled as it is already checked above and the testsuites seems 
    to count multiple different identical errors on the same line only once */
-/*  dg-error "initializing argument" "" { target *-*-* } 12  */
+/*  dg-message "initializing argument" "" { target *-*-* } 12  */
       some_func (&k);
     }
     @catch (id exc) {