diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/lineno5.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/lineno5.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/lineno5.C b/gcc/testsuite/g++.old-deja/g++.jason/lineno5.C new file mode 100644 index 000000000..f723a222b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/lineno5.C @@ -0,0 +1,10 @@ +// { dg-do assemble } +// GROUPS passed error-reporting +// Bug: incomplete instantiation messes with lineno +template <class T> class A; + +int main() +{ + A<int> *p; + undef1();// { dg-error "" } +} |