Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/auto-fn56.C

raw
1 // PR c++/91378
2 // { dg-do compile { target c++14 } }
3
4 struct B
5 {
6 int i;
7 };
8
9 struct C
10 {
11 template <class T> static auto
12 g(B b) noexcept(noexcept(b.i)) { }
13 };
14
15 template <class T>
16 void h(T t)
17 {
18 C::g<int>({});
19 }