summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/cond1.C
blob: 64cc728fc8fc0a1bc056bb57158ef366c6bb62b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { dg-do link  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
void f (T&) ;

template <>
void f (void (&)()) 
{
}

void g () 
{
}

void h ()
{
}

bool b;

int main ()
{
  f (b ? g : h);
}