Debian Codegraph @

gcc/testsuite/g++.dg/template/arrow4.C

raw
1 // PR c++/56895
2 // { dg-do compile }
3
4 void fn (int *);
5 void fn (int);
6 extern struct A { bool foo (); A bar (); } *a;
7
8 template <int>
9 void
10 baz ()
11 {
12 fn (a->bar().foo() ? 1 : 0);
13 }
14
15 void
16 test ()
17 {
18 baz<0> ();
19 }