diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2016-10-11 10:26:10 +0000 |
---|---|---|
committer | Thomas Preud'homme <thopre01@gcc.gnu.org> | 2016-10-11 10:26:10 +0000 |
commit | e7b08761c704a9e5a64d545983b46f705612f3d4 (patch) | |
tree | 6bdab196dec32167d257af7d850c2ae2473a8e79 /gcc | |
parent | 08ef2c16779f0f1814cc1f49bf53e7504942f079 (diff) | |
download | gcc-e7b08761c704a9e5a64d545983b46f705612f3d4.zip gcc-e7b08761c704a9e5a64d545983b46f705612f3d4.tar.gz gcc-e7b08761c704a9e5a64d545983b46f705612f3d4.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4ceb848..d406923 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +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> * gnat.dg/unchecked_convert10.adb: New test. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c index 9fff2ac..4b40336 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c @@ -8,8 +8,8 @@ char dst [8]; void test (void) { sprintf (dst + 7, "%-s", "1"); - /* { 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-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-begin-multiline-output "" } sprintf (dst + 7, "%-s", "1"); ~~^~ @@ -20,8 +20,8 @@ void test (void) { dg-end-multiline-output "" } */ sprintf (dst + 7, "%-s", "abcd"); - /* { 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-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-begin-multiline-output "" } sprintf (dst + 7, "%-s", "abcd"); ^~~ ~~~~~~ |