Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/ubsan/align-10.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 "-O -fsanitize=alignment -fsanitize-recover=alignment" } */ | 3 /* { dg-options "-O -fsanitize=alignment -fsanitize-recover=alignment -Wno-address-of-packed-member" } */ |
4 | 4 |
5 struct R { int a; } r; | 5 struct R { int a; } r; |
6 struct S { struct R a; char b; long long c; short d[10]; }; | 6 struct S { struct R a; char b; long long c; short d[10]; }; |
7 struct T { char a; long long b; }; | 7 struct T { char a; long long b; }; |
8 struct U { char a; int b; int c; long long d; struct S e; struct T f; } __attribute__((packed)); | 8 struct U { char a; int b; int c; long long d; struct S e; struct T f; } __attribute__((packed)); |