Commit e7b08761 by Thomas Preud'homme Committed by Thomas Preud'homme

PR77710: fix triplet in builtin-sprintf-warn-4.c

2016-10-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/testsuite/
    PR testsuite/PR77710
    * gcc.dg/tree-ssa/builtin-sprintf-warn-4.c: Use *-*-* as catch-all
    target triplet instead of *-*-*-*.

From-SVN: r240979
parent 08ef2c16
2016-10-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR testsuite/PR77710
* gcc.dg/tree-ssa/builtin-sprintf-warn-4.c: Use *-*-* as catch-all
target triplet instead of *-*-*-*.
2016-10-11 Eric Botcazou <ebotcazou@adacore.com> 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/unchecked_convert10.adb: New test. * gnat.dg/unchecked_convert10.adb: New test.
......
...@@ -8,8 +8,8 @@ char dst [8]; ...@@ -8,8 +8,8 @@ char dst [8];
void test (void) void test (void)
{ {
sprintf (dst + 7, "%-s", "1"); sprintf (dst + 7, "%-s", "1");
/* { dg-warning "writing a terminating nul past the end of the destination" "" { target *-*-*-* } 10 } /* { dg-warning "writing a terminating nul past the end of the destination" "" { target *-*-* } 10 }
{ dg-message "format output 2 bytes into a destination of size 1" "" { target *-*-*-* } 10 } { dg-message "format output 2 bytes into a destination of size 1" "" { target *-*-* } 10 }
{ dg-begin-multiline-output "" } { dg-begin-multiline-output "" }
sprintf (dst + 7, "%-s", "1"); sprintf (dst + 7, "%-s", "1");
~~^~ ~~^~
...@@ -20,8 +20,8 @@ void test (void) ...@@ -20,8 +20,8 @@ void test (void)
{ dg-end-multiline-output "" } */ { dg-end-multiline-output "" } */
sprintf (dst + 7, "%-s", "abcd"); sprintf (dst + 7, "%-s", "abcd");
/* { dg-warning ".%-s. directive writing 4 bytes into a region of size 1" "" { target *-*-*-* } 22 } /* { dg-warning ".%-s. directive writing 4 bytes into a region of size 1" "" { target *-*-* } 22 }
{ dg-message "format output 5 bytes into a destination of size 1" "" { target *-*-*-* } 22 } { dg-message "format output 5 bytes into a destination of size 1" "" { target *-*-* } 22 }
{ dg-begin-multiline-output "" } { dg-begin-multiline-output "" }
sprintf (dst + 7, "%-s", "abcd"); sprintf (dst + 7, "%-s", "abcd");
^~~ ~~~~~~ ^~~ ~~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment