aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19940712-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19951025-1.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19990413-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/direct2.c8
-rw-r--r--gcc/testsuite/gcc.dg/cpp/direct2s.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/pr28709.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/pr61854-c90.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/pr61854-c94.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/pragma-1.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/pragma-2.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/trad/escaped-eof.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/trad/literals-2.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warn-comments-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warn-comments-3.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warn-comments.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warn-long-long.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c6
-rw-r--r--gcc/testsuite/gcc.dg/cpp/warn-redefined.c6
19 files changed, 34 insertions, 34 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/19940712-1.c b/gcc/testsuite/gcc.dg/cpp/19940712-1.c
index a79b2f5..7fd9b15 100644
--- a/gcc/testsuite/gcc.dg/cpp/19940712-1.c
+++ b/gcc/testsuite/gcc.dg/cpp/19940712-1.c
@@ -2,7 +2,7 @@
/* PR 4713 */
/* dg.exp doesn't read the header files for magic comments. */
-/* { dg-error "unterminated comment" "" { target *-*-* } 4 } */
+/* { dg-error "unterminated comment" "" { target *-*-* } .-1 } */
/* { dg-error "unterminated comment" "header error" { target *-*-* } 8 } */
#include "19940712-1.h"
diff --git a/gcc/testsuite/gcc.dg/cpp/19951025-1.c b/gcc/testsuite/gcc.dg/cpp/19951025-1.c
index b817b68..4266500 100644
--- a/gcc/testsuite/gcc.dg/cpp/19951025-1.c
+++ b/gcc/testsuite/gcc.dg/cpp/19951025-1.c
@@ -1,4 +1,4 @@
/* { dg-do preprocess } */
-/* { dg-error "include expects" "include" { target *-*-* } 4 } */
-/* { dg-error "newline at end" "newline" { target *-*-* } 4 } */
+/* { dg-error "include expects" "include" { target *-*-* } .+2 } */
+/* { dg-error "newline at end" "newline" { target *-*-* } .+1 } */
#include /\
diff --git a/gcc/testsuite/gcc.dg/cpp/19990413-1.c b/gcc/testsuite/gcc.dg/cpp/19990413-1.c
index c72c3a2..96a3d70 100644
--- a/gcc/testsuite/gcc.dg/cpp/19990413-1.c
+++ b/gcc/testsuite/gcc.dg/cpp/19990413-1.c
@@ -9,5 +9,5 @@ func(void)
{
FOO(i
= 4)
- else; /* { dg-error "'else' without a previous 'if'" "error on this line" { target *-*-* } 12 } */
+ else; /* { dg-error "'else' without a previous 'if'" "error on this line" { target *-*-* } . } */
}
diff --git a/gcc/testsuite/gcc.dg/cpp/direct2.c b/gcc/testsuite/gcc.dg/cpp/direct2.c
index 1ce40bf..ac86d10 100644
--- a/gcc/testsuite/gcc.dg/cpp/direct2.c
+++ b/gcc/testsuite/gcc.dg/cpp/direct2.c
@@ -13,11 +13,11 @@
#define HASHINCLUDE #include
HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
-/*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 15 }*/
-int resync_parser_1; /*{ dg-error "parse|syntax|expected" "" { target *-*-* } 15 }*/
+/*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } .-1 }*/
+int resync_parser_1; /*{ dg-error "parse|syntax|expected" "" { target *-*-* } .-2 }*/
HASHINCLUDE <somerandomfile> /*{ dg-error "stray|expected" "non-include 2" }*/
-/*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 19 }*/
+/*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } .-1 }*/
int resync_parser_2;
void g1 ()
@@ -45,4 +45,4 @@ void f ()
#define starslash *##/
slashstar starslash /* { dg-error "parse error|syntax error|expected" "not a comment" } */
-/* { dg-error "does not give" "paste warning(s)" { target *-*-* } 47 } */
+/* { dg-error "does not give" "paste warning(s)" { target *-*-* } .-1 } */
diff --git a/gcc/testsuite/gcc.dg/cpp/direct2s.c b/gcc/testsuite/gcc.dg/cpp/direct2s.c
index f73e75d..fa3f5ab 100644
--- a/gcc/testsuite/gcc.dg/cpp/direct2s.c
+++ b/gcc/testsuite/gcc.dg/cpp/direct2s.c
@@ -13,8 +13,8 @@
#define HASHINCLUDE #include
HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
-/*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 15 }*/
-int resync_parser_1; /*{ dg-error "parse|syntax|expected" "" { target *-*-* } 15 }*/
+/*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } .-1 }*/
+int resync_parser_1; /*{ dg-error "parse|syntax|expected" "" { target *-*-* } .-2 }*/
HASHINCLUDE <somerandomfile> /*{ dg-error "stray|expected" "non-include 2" }*/
/*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 18 }*/
diff --git a/gcc/testsuite/gcc.dg/cpp/pr28709.c b/gcc/testsuite/gcc.dg/cpp/pr28709.c
index 25d7cc2..f820ed0 100644
--- a/gcc/testsuite/gcc.dg/cpp/pr28709.c
+++ b/gcc/testsuite/gcc.dg/cpp/pr28709.c
@@ -6,5 +6,5 @@
#define foo - ## >>
foo;
-/* { dg-error "expected identifier.*'-'" "expected" { target *-*-* } 8 } */
-/* { dg-error pasting "pasting" { target *-*-* } 8 } */
+/* { dg-error "expected identifier.*'-'" "expected" { target *-*-* } .-1 } */
+/* { dg-error pasting "pasting" { target *-*-* } .-2 } */
diff --git a/gcc/testsuite/gcc.dg/cpp/pr61854-c90.c b/gcc/testsuite/gcc.dg/cpp/pr61854-c90.c
index 37eecbe..d7a9ba5 100644
--- a/gcc/testsuite/gcc.dg/cpp/pr61854-c90.c
+++ b/gcc/testsuite/gcc.dg/cpp/pr61854-c90.c
@@ -6,8 +6,8 @@ void
foo (void)
{
// 1st
- /* { dg-error "C\\+\\+ style comments are not allowed in ISO C90" "comments" { target *-*-*} 8 } */
- /* { dg-error "reported only once" "" { target *-*-*} 8 } */
+ /* { dg-error "C\\+\\+ style comments are not allowed in ISO C90" "comments" { target *-*-*} .-1 } */
+ /* { dg-error "reported only once" "" { target *-*-*} .-2 } */
// 2nd
// 3rd
}
diff --git a/gcc/testsuite/gcc.dg/cpp/pr61854-c94.c b/gcc/testsuite/gcc.dg/cpp/pr61854-c94.c
index 64f1e18..bd5ea6e 100644
--- a/gcc/testsuite/gcc.dg/cpp/pr61854-c94.c
+++ b/gcc/testsuite/gcc.dg/cpp/pr61854-c94.c
@@ -6,8 +6,8 @@ void
foo (void)
{
// 1st
- /* { dg-error "C\\+\\+ style comments are not allowed in ISO C90" "comments" { target *-*-*} 8 } */
- /* { dg-error "reported only once" "" { target *-*-*} 8 } */
+ /* { dg-error "C\\+\\+ style comments are not allowed in ISO C90" "comments" { target *-*-*} .-1 } */
+ /* { dg-error "reported only once" "" { target *-*-*} .-2 } */
// 2nd
// 3rd
}
diff --git a/gcc/testsuite/gcc.dg/cpp/pragma-1.c b/gcc/testsuite/gcc.dg/cpp/pragma-1.c
index 7b4ee36..aa23b83 100644
--- a/gcc/testsuite/gcc.dg/cpp/pragma-1.c
+++ b/gcc/testsuite/gcc.dg/cpp/pragma-1.c
@@ -7,7 +7,7 @@ main ()
#pragma unknown
{
error;
- /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } 9 } */
- /* { dg-message "function it appears in" "reminder message" { target *-*-* } 9 } */
+ /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } .-1 } */
+ /* { dg-message "function it appears in" "reminder message" { target *-*-* } .-2 } */
}
}
diff --git a/gcc/testsuite/gcc.dg/cpp/pragma-2.c b/gcc/testsuite/gcc.dg/cpp/pragma-2.c
index 001365f..8b39223 100644
--- a/gcc/testsuite/gcc.dg/cpp/pragma-2.c
+++ b/gcc/testsuite/gcc.dg/cpp/pragma-2.c
@@ -11,6 +11,6 @@ int main () {
#pragma unknown
{}
error;
- /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } 13 } */
- /* { dg-message "function it appears in" "reminder message" { target *-*-* } 13 } */
+ /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } .-1 } */
+ /* { dg-message "function it appears in" "reminder message" { target *-*-* } .-2 } */
}
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/escaped-eof.c b/gcc/testsuite/gcc.dg/cpp/trad/escaped-eof.c
index 2c9c185..a9ed53b 100644
--- a/gcc/testsuite/gcc.dg/cpp/trad/escaped-eof.c
+++ b/gcc/testsuite/gcc.dg/cpp/trad/escaped-eof.c
@@ -2,5 +2,5 @@
/* { dg-do preprocess } */
-/* { dg-warning "backslash-new" "escaped EOF warning" { target *-*-* } 6 } */
+/* { dg-warning "backslash-new" "escaped EOF warning" { target *-*-* } .+1 } */
\
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c b/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c
index b471772..faa7bd8 100644
--- a/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c
+++ b/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c
@@ -2,7 +2,7 @@
recognized. */
/* { dg-do preprocess } */
-/* { dg-warning "missing terminating" "bad charconst" { target *-*-* } 7 } */
-/* { dg-error "not valid" "bad charconst" { target *-*-* } 7 } */
+/* { dg-warning "missing terminating" "bad charconst" { target *-*-* } .+2 } */
+/* { dg-error "not valid" "bad charconst" { target *-*-* } .+1 } */
#if 'x
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c b/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c
index 492b99c..3091c9d 100644
--- a/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c
+++ b/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c
@@ -4,4 +4,4 @@
/* /* */ // { dg-error "\"\.\*\" within comment .-Werror=comment." }
// \
- // { dg-error "multi-line comment .-Werror=comment." "multi-line" { target *-*-* } 6 }
+ // { dg-error "multi-line comment .-Werror=comment." "multi-line" { target *-*-* } .-1 }
diff --git a/gcc/testsuite/gcc.dg/cpp/warn-comments-3.c b/gcc/testsuite/gcc.dg/cpp/warn-comments-3.c
index 639fa10..bba72f0 100644
--- a/gcc/testsuite/gcc.dg/cpp/warn-comments-3.c
+++ b/gcc/testsuite/gcc.dg/cpp/warn-comments-3.c
@@ -4,4 +4,4 @@
/* /* */ // { dg-error "\"\.\*\" within comment .-Werror=comment." }
// \
- // { dg-error "multi-line comment .-Werror=comment." "multi-line" { target *-*-* } 6 }
+ // { dg-error "multi-line comment .-Werror=comment." "multi-line" { target *-*-* } .-1 }
diff --git a/gcc/testsuite/gcc.dg/cpp/warn-comments.c b/gcc/testsuite/gcc.dg/cpp/warn-comments.c
index bbe2821..8d7a575 100644
--- a/gcc/testsuite/gcc.dg/cpp/warn-comments.c
+++ b/gcc/testsuite/gcc.dg/cpp/warn-comments.c
@@ -4,4 +4,4 @@
/* /* */ // { dg-warning "4: \"\.\*\" within comment .-Wcomment." }
// \
- // { dg-warning "1: multi-line comment .-Wcomment." "multi-line" { target *-*-* } 6 }
+ // { dg-warning "1: multi-line comment .-Wcomment." "multi-line" { target *-*-* } .-1 }
diff --git a/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c b/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c
index 7b074a3..a39cba4 100644
--- a/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c
+++ b/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c
@@ -2,5 +2,5 @@
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Wtraditional -Werror=long-long" }
/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
#if 0LL // { dg-error "traditional C rejects the \"LL\" suffix .-Werror=long-long." }
- // { dg-error "use of C99 long long integer constant .-Werror=long-long." "use long long" { target *-*-* } 4 }
+ // { dg-error "use of C99 long long integer constant .-Werror=long-long." "use long long" { target *-*-* } .-1 }
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/warn-long-long.c b/gcc/testsuite/gcc.dg/cpp/warn-long-long.c
index e86f9a6..ac39cc8 100644
--- a/gcc/testsuite/gcc.dg/cpp/warn-long-long.c
+++ b/gcc/testsuite/gcc.dg/cpp/warn-long-long.c
@@ -2,5 +2,5 @@
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Wtraditional -Wlong-long" }
#if 0LL // { dg-warning "traditional C rejects the \"LL\" suffix .-Wlong-long." }
- // { dg-warning "use of C99 long long integer constant .-Wlong-long." "use long long" { target *-*-* } 4 }
+ // { dg-warning "use of C99 long long integer constant .-Wlong-long." "use long long" { target *-*-* } .-1 }
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c b/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c
index e6b209c..3e2e57a 100644
--- a/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c
+++ b/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c
@@ -3,16 +3,16 @@
/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
#ifndef __TIME__
#error "__TIME__ builtin is not defined"
-// { dg-bogus "__TIME__ builtin is not defined" "no-time" { target *-*-* } 5 }
+// { dg-bogus "__TIME__ builtin is not defined" "no-time" { target *-*-* } .-1 }
#endif
#define __TIME__ "X" // { dg-error "\"__TIME__\" redefined .-Werror=builtin-macro-redefined." }
#define __TIME__ "Y" // { dg-bogus "-Wbuiltin-macro-redefined" }
- // { dg-warning "\"__TIME__\" redefined" "not-builtin-1" { target *-*-* } 11 }
+ // { dg-warning "\"__TIME__\" redefined" "not-builtin-1" { target *-*-* } .-1 }
// { dg-message "previous definition" "previous-1" { target *-*-* } 9 }
#define X "X"
#define X "Y" // { dg-bogus "-Wbuiltin-macro-redefined" }
- // { dg-warning "\"X\" redefined" "not-builtin-2" { target *-*-* } 16 }
+ // { dg-warning "\"X\" redefined" "not-builtin-2" { target *-*-* } .-1 }
// { dg-message "previous definition" "previous-2" { target *-*-* } 15 }
diff --git a/gcc/testsuite/gcc.dg/cpp/warn-redefined.c b/gcc/testsuite/gcc.dg/cpp/warn-redefined.c
index 1d3e7fc..c562d07 100644
--- a/gcc/testsuite/gcc.dg/cpp/warn-redefined.c
+++ b/gcc/testsuite/gcc.dg/cpp/warn-redefined.c
@@ -3,16 +3,16 @@
#ifndef __TIME__
#error "__TIME__ builtin is not defined"
-// { dg-bogus "__TIME__ builtin is not defined" "no-time" { target *-*-* } 5 }
+// { dg-bogus "__TIME__ builtin is not defined" "no-time" { target *-*-* } .-1 }
#endif
#define __TIME__ "X" // { dg-warning "\"__TIME__\" redefined .-Wbuiltin-macro-redefined." }
#define __TIME__ "Y" // { dg-bogus "-Wbuiltin-macro-redefined" }
- // { dg-warning "\"__TIME__\" redefined" "not-builtin-1" { target *-*-* } 11 }
+ // { dg-warning "\"__TIME__\" redefined" "not-builtin-1" { target *-*-* } .-1 }
// { dg-message "previous definition" "previous-1" { target *-*-* } 9 }
#define X "X"
#define X "Y" // { dg-bogus "-Wbuiltin-macro-redefined" }
- // { dg-warning "\"X\" redefined" "not-builtin-2" { target *-*-* } 16 }
+ // { dg-warning "\"X\" redefined" "not-builtin-2" { target *-*-* } .-1 }
// { dg-message "previous definition" "previous-2" { target *-*-* } 15 }