diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20070522-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20070522-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20070522-1.c b/gcc/testsuite/gcc.c-torture/compile/20070522-1.c new file mode 100644 index 000000000..1e1e8020d --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20070522-1.c @@ -0,0 +1,13 @@ +/* { dg-options "-Wno-psabi" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ + +/* This was PR 31606, we were trying to use TImode to expand the + struct copy in SRA but TImode is not support on ia32. */ + +struct Collision { + int edge; + int triangle; + float _M_instance[3] __attribute__((__aligned__)); +}; +void get_collisions(struct Collision a) { + struct Collision b = a; +} |