view gcc/testsuite/g++.dg/vec-init-1.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children 1830386684a0
line wrap: on
line source

/* On S/390 this ends up calling the vec_init RTL expander with a
   parallel of two symbol_refs.  */

/* { dg-do compile } */
/* { dg-options "-O3 -fPIC" } */


struct test
{
    struct base
    {
       int key;
    };
    struct derived : public base
    {
       int key;
    };

    derived core;
    derived &dRef;
    base &bRef;

    test() : dRef (core), bRef (core) {}
};

test test;