aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/inline.C
blob: ac140ab6744e54a4dd07d502d23fbac20d17a845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PRMS Id: 4341
// Bug: Instantiating a template in the middle of processing the functions
// from another template screws up lineno/input_filename.

#pragma implementation "C.h"
#line 1 "A.h"
#pragma interface
template <class T> class A {};
#line 1 "C.h"
#pragma interface
template <class T> class C
{
public:
  C() { A<T> *ap; }
  ~C() { }
};
#line 18 "inline.C"
main()
{
  C<int> c;
}