gcc/testsuite/g++.target/i386/pr89650.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-options "-O2 -flive-range-shrinkage -fno-tree-dce -fno-dce -fnon-call-exceptions -mavx" } |
| 3 | |
| 4 | int d, e; |
| 5 | struct g { |
| 6 | float f; |
| 7 | g(float h) : f(h + d) {} |
| 8 | ~g() {} |
| 9 | }; |
| 10 | struct i { |
| 11 | int a; |
| 12 | int b : 4; |
| 13 | int &c; |
| 14 | i(int h) : a(), b(), c(h) {} |
| 15 | }; |
| 16 | int main() { |
| 17 | i j(e); |
| 18 | g k[]{1, 2}; |
| 19 | } |