view gcc/testsuite/g++.dg/conversion/packed2.C @ 19:2b5abeee2509 default tip

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

// PR c++/91925
// { dg-do compile { target c++11 } }
// { dg-options "-fpack-struct" }

struct A {};
int foo (A);
struct B {
  A a;
  decltype (foo (a)) p;
};
template <typename T> T bar (T);
class C {
  A a;
  decltype (bar (a)) p;
};