summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/inline.C
blob: d614d541a29acb791226da4e64808e6a7bdca502 (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  }
// 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"
int main()
{
  C<int> c;
}