diff options
author | James E Wilson <wilson@specifixinc.com> | 2004-03-10 06:04:14 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2004-03-09 22:04:14 -0800 |
commit | 8a308d45d57953297c37fe233b61a042cb563531 (patch) | |
tree | e3de107ca5ab570932a9334bdcd238cbee631889 /gcc/testsuite/gcc.dg/alias-1.c | |
parent | 5399d643680b153db318cd9ef38787774eac34c4 (diff) | |
download | gcc-8a308d45d57953297c37fe233b61a042cb563531.zip gcc-8a308d45d57953297c37fe233b61a042cb563531.tar.gz gcc-8a308d45d57953297c37fe233b61a042cb563531.tar.bz2 |
Testsuite changes for new -Wstrict-aliasing=2 option.
* gcc.dg/alias-1.c: Add "will" to string passed to dg-warning.
* gcc.dg/alias-2.c: New testcase.
From-SVN: r79223
Diffstat (limited to 'gcc/testsuite/gcc.dg/alias-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/alias-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/alias-1.c b/gcc/testsuite/gcc.dg/alias-1.c index a723083..82dbc9e 100644 --- a/gcc/testsuite/gcc.dg/alias-1.c +++ b/gcc/testsuite/gcc.dg/alias-1.c @@ -19,7 +19,7 @@ YYSTYPE addSibMacro( YYSTYPE list ) { - tDefEntry** ppT = (tDefEntry**)&list; // { dg-warning "type-punned pointer" "" } + tDefEntry** ppT = (tDefEntry**)&list; // { dg-warning "type-punned pointer will" "" } struct incomplete *p = (struct incomplete *)&list; // { dg-warning "type-punning to incomplete" "" } |