projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
299d193
)
Test for cpp line numbering bug
author
Zack Weinberg
<zack@gcc.gnu.org>
Tue, 13 Apr 1999 23:09:35 +0000
(23:09 +0000)
committer
Zack Weinberg
<zack@gcc.gnu.org>
Tue, 13 Apr 1999 23:09:35 +0000
(23:09 +0000)
From-SVN: r26431
gcc/testsuite/gcc.dg/990413-1.c
[new file with mode: 0644]
patch
|
blob
diff --git a/gcc/testsuite/gcc.dg/990413-1.c
b/gcc/testsuite/gcc.dg/990413-1.c
new file mode 100644
(file)
index 0000000..
383cd39
--- /dev/null
+++ b/
gcc/testsuite/gcc.dg/990413-1.c
@@ -0,0
+1,13
@@
+/* Verify that cpp doesn't screw up the line numbering when a macro argument
+ extends over multiple lines. */
+/* { dg-do compile } */
+
+#define FOO(x) /* nothing */
+
+void
+func(void)
+{
+ FOO(i
+ = 4)
+ else; /* { dg-error "syntax error" "error on this line" { target native } { 12 } } */
+}