Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/pr53037-5.c @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR c/53037. */ /* { dg-do compile } */ /* { dg-options "-O0 -Wno-if-not-aligned" } */ typedef unsigned long long __u64 __attribute__((aligned(4),warn_if_not_aligned(8))); struct foo1 { int i1; int i2; int i3; __u64 x; }; struct foo2 { int i1; int i2; int i3; __u64 x; } __attribute__((aligned(8))); struct foo3 { int i1; int i3; __u64 x; }; struct foo4 { int i1; int i2; __u64 x; } __attribute__((aligned(8))); struct foo5 { int i1; int x __attribute__((warn_if_not_aligned(16))); }; struct foo6 { int i1; int x __attribute__((warn_if_not_aligned(16))); } __attribute__((aligned(16))); struct foo7 { int i1; int i2; int i3; int i4; int x __attribute__((warn_if_not_aligned(16))); } __attribute__((aligned(16))); union bar1 { int i1; __u64 x; }; union bar2 { int i1; __u64 x; } __attribute__((aligned(8))); union bar3 { int i1; int x __attribute__((warn_if_not_aligned(16))); }; union bar4 { int i1; int x __attribute__((warn_if_not_aligned(16))); } __attribute__((aligned(16)));