gcc/testsuite/g++.dg/vec-init-1.C
raw| 1 | /* On S/390 this ends up calling the vec_init RTL expander with a |
| 2 | parallel of two symbol_refs. */ |
| 3 | |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-require-effective-target fpic } */ |
| 6 | /* { dg-options "-O3 -fPIC" } */ |
| 7 | |
| 8 | |
| 9 | struct test |
| 10 | { |
| 11 | struct base |
| 12 | { |
| 13 | int key; |
| 14 | }; |
| 15 | struct derived : public base |
| 16 | { |
| 17 | int key; |
| 18 | }; |
| 19 | |
| 20 | derived core; |
| 21 | derived &dRef; |
| 22 | base &bRef; |
| 23 | |
| 24 | test() : dRef (core), bRef (core) {} |
| 25 | }; |
| 26 | |
| 27 | test test; |