Debian Codegraph @

gcc/testsuite/g++.dg/ipa/pr82801.C

raw
1 // PR ipa/82801
2 // { dg-do compile }
3 // { dg-options "-O2 -Wno-attributes" }
4
5 template<int>
6 struct A { A () {} };
7 struct B { double foo () const; };
8
9 __attribute__((always_inline, flatten))
10 double B::foo () const
11 {
12 A<1> v;
13 return 0.0;
14 }
15
16 int
17 main ()
18 {
19 return 0;
20 }