comparison gcc/testsuite/c-c++-common/ubsan/align-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Limit this to known non-strict alignment targets. */ 1 /* Limit this to known non-strict alignment targets. */
2 /* { dg-do run { target { i?86-*-linux* x86_64-*-linux* } } } */ 2 /* { dg-do run { target { i?86-*-linux* x86_64-*-linux* } } } */
3 /* { dg-options "-fsanitize=alignment" } */ 3 /* { dg-options "-fsanitize=alignment -Wno-address-of-packed-member" } */
4 4
5 struct S { int a; char b; long long c; short d[10]; }; 5 struct S { int a; char b; long long c; short d[10]; };
6 struct T { char a; long long b; }; 6 struct T { char a; long long b; };
7 struct U { char a; int b; int c; long long d; struct S e; struct T f; } __attribute__((packed)); 7 struct U { char a; int b; int c; long long d; struct S e; struct T f; } __attribute__((packed));
8 struct V { long long a; struct S b; struct T c; struct U u; } v; 8 struct V { long long a; struct S b; struct T c; struct U u; } v;