summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/overload9.C
blob: 59457e18fa5729355a6cf38743b840462c063f16 (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
27
28
29
30
31
32
// { dg-do run  }
struct T { ~T() {} };

int g ()
{
 foo:
  T t;
  int f(int);
 bar:
  T t2;
  int f(double);
  return f(3);
}


int f(int)
{
  return 0;
}


int f(double)
{
  return 1;
}


int main()
{
  return g();
}