doc: Drop GCC 2.6 ABI change note for H8/h8300-hms
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / bitfield-3.c
blobc5907786f76b80d83546269c341ab973e8d24b53
1 /* Check that Asan correctly instruments bitfields with round offset. */
3 /* { dg-do run } */
4 /* { dg-shouldfail "asan" } */
6 struct A
8 char base;
9 int : 8;
10 int x : 8;
13 int __attribute__ ((noinline, noclone))
14 f (void *p) {
15 return ((struct A *)p)->x;
18 int
19 main ()
21 char a = 0;
22 return f (&a);
25 /* { dg-output "ERROR: AddressSanitizer: stack-buffer-overflow" } */