☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
arrow4.C
☽
☼
gcc/testsuite/g++.dg/template/arrow4.C
code
plain
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
}