blob: f73acc7f2f07253645b61b0aa96cefe30647883e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// { dg-do run }
template <class T>
int f(T)
{
return 1;
}
template <class T>
int f(T*)
{
return 0;
}
int main()
{
int (*h)(int*) = &f;
int (&k)(int*) = f;
return (*h)(0) || (*k)(0);
}
|