view gcc/testsuite/g++.dg/torture/pr51198.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-options "-std=gnu++0x" } */

struct A
{
  int i = 0 ? 0 : throw 1;
};


struct B
{
  int f();
  int i = f();
};

struct C
{
  C(int);
};

struct D
{
  C a = 0;
};

A a;
B b;
D d;