view gcc/testsuite/g++.dg/ipa/pr82801.C @ 131:84e7813d76e9

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

// PR ipa/82801
// { dg-do compile }
// { dg-options "-O2 -Wno-attributes" }

template<int>
struct A { A () {} };
struct B { double foo () const; };

__attribute__((always_inline, flatten))
double B::foo () const
{
  A<1> v;
  return 0.0;
}

int
main ()
{
  return 0;
}