summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/lineno3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/lineno3.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/lineno3.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/lineno3.C b/gcc/testsuite/g++.old-deja/g++.jason/lineno3.C
new file mode 100644
index 000000000..997267e72
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/lineno3.C
@@ -0,0 +1,14 @@
+// { dg-do assemble }
+// { dg-options "" }
+// GROUPS passed error-reporting
+// potential bug: # line directive does not get reproduced in template
+// expansion
+template <class T> class A
+{
+public:
+# 200 "lineno3.C"
+ int foo () { undef1(); } // { dg-error "" "" { target *-*-* } 200 }
+ // { dg-message "note" "note" { target *-*-* } 200 }
+};
+
+template class A<int>;