Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/ubsan/align-8.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-undefined-trap-on-error -fdump-tree-sanopt-details" } */ | 3 /* { dg-options "-O -fsanitize=alignment -fsanitize-undefined-trap-on-error -Wno-address-of-packed-member -fdump-tree-sanopt-details" } */ |
4 /* { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } } */ | 4 /* { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } } */ |
5 /* { dg-shouldfail "ubsan" } */ | 5 /* { dg-shouldfail "ubsan" } */ |
6 | 6 |
7 struct S { int a; char b; long long c; short d[10]; }; | 7 struct S { int a; char b; long long c; short d[10]; }; |
8 struct T { char a; long long b; }; | 8 struct T { char a; long long b; }; |