summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/lineno4.C
blob: caa5bc216cd4fd92c0ab5ab71c5ab390f3638fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-options "" }
// GROUPS passed error-reporting
// Bug: # line directive in template definition interferes with growing obstack
template <class T> class A
{
public:

# 200 "lineno4.C"
      int foo () { undef1(); } // { dg-error "" "" { target *-*-* } 200 }
      // { dg-message "note" "note" { target *-*-* } 200 }
};

template class A<int>;