summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/repo2.C
blob: a8d8b1217a165c52afeab7c89d31aa77dc1ad534 (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
// { dg-do link  }
// { dg-options "-frepo" }
// { dg-require-host-local "" }
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }

// Test that collect2 isn't confused by GNU ld's "In function `foo':" message.
// Contributed by Jason Merrill <jason@cygnus.com>

// Build then link:

template <class T>
T f (T t)
{
  return t;
}

template <class T>
T g (T t)
{
  return f (t);
}

int main ()
{
  int i = g (42);
}

// { dg-final { cleanup-repo-files } }