diff options
author | Janis Johnson <janisjo@codesourcery.com> | 2012-06-29 03:55:21 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2012-06-29 03:55:21 +0000 |
commit | b03aa1faa2c96a4f8228e253b59ddb7d0e856817 (patch) | |
tree | 9d4596e274d01383d82ef9f7e4f2a2b0b413fbb4 /gcc | |
parent | 2b774880bc7f91763c7e79694ba8428996300710 (diff) | |
download | gcc-b03aa1faa2c96a4f8228e253b59ddb7d0e856817.zip gcc-b03aa1faa2c96a4f8228e253b59ddb7d0e856817.tar.gz gcc-b03aa1faa2c96a4f8228e253b59ddb7d0e856817.tar.bz2 |
Wstrict-aliasing-converted-assigned.c: Fix syntax errors in dg-message directives, add comments.
* gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax
errors in dg-message directives, add comments.
From-SVN: r189061
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7d1b532..a04e288 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-06-28 Janis Johnson <janisjo@codesourcery.com> + + * gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax + errors in dg-message directives, add comments. + 2012-06-28 Kai Tietz <ktietz@redhat.com> * g++.dg/cpp0x/constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of diff --git a/gcc/testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c b/gcc/testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c index b77373d..06a8a37 100644 --- a/gcc/testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c +++ b/gcc/testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c @@ -5,9 +5,11 @@ int foo() { int i; - *(long*)&i = 0; /* { dg-warning "type-punn" } */ + *(long*)&i = 0; /* { dg-warning "type-punn" "type-punn" } */ return i; } -/* { dg-message "does break strict-aliasing" "" { target { *-*-* && lp64 } xfail *-*-* } 8 } */ -/* { dg-message "initialized" "" { target { *-*-* && lp64 } xfail *-*-* } 8 } */ +/* These messages are only expected for lp64, but fail there. When they + pass for lp64, replace "xfail *-*-*" with "target lp64". */ +/* { dg-message "does break strict-aliasing" "break" { xfail *-*-* } 8 } */ +/* { dg-message "initialized" "init" { xfail *-*-* } 8 } */ |