diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/lineno4.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/lineno4.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/lineno4.C b/gcc/testsuite/g++.old-deja/g++.jason/lineno4.C new file mode 100644 index 000000000..caa5bc216 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/lineno4.C @@ -0,0 +1,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>; |