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