2 // { dg-options "-Wstrict-aliasing=2 -fstrict-aliasing" }
4 // Copyright (C) 2002 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 29 Sep 2002 <nathan@codesourcery.com>
7 // 8083. warn about odd casts
10 typedef struct tDefEntry
22 tDefEntry** ppT = (tDefEntry**)&list; // { dg-warning "type-punned pointer will" "" }
24 struct incomplete *p = (struct incomplete *)&list; // { dg-warning "type-punning to incomplete" "" }