comparison gcc/testsuite/g++.old-deja/g++.jason/anon4.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // { dg-do assemble } 1 // { dg-do assemble }
2 // { dg-options "-O" } 2 // { dg-options "-O" }
3 // PRMS Id: 5371 3 // PRMS Id: 5371
4 // Bug: g++ screws up the alignment of buff and dies. 4 // Bug: g++ screws up the alignment of buff and dies.
5 5
6 int
6 main() 7 main()
7 { 8 {
8 union { 9 union {
9 double a; 10 double a;
10 char buff[sizeof(double)]; 11 char buff[sizeof(double)];
11 }; 12 };
12 13
13 void *p = buff; 14 void *p = buff;
15 return 0;
14 } 16 }