aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/missing-header-fixit-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/missing-header-fixit-3.c')
-rw-r--r--gcc/testsuite/gcc.dg/missing-header-fixit-3.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/missing-header-fixit-3.c b/gcc/testsuite/gcc.dg/missing-header-fixit-3.c
index 7c72b1d..a692b4d 100644
--- a/gcc/testsuite/gcc.dg/missing-header-fixit-3.c
+++ b/gcc/testsuite/gcc.dg/missing-header-fixit-3.c
@@ -7,18 +7,15 @@
void test (int i, int j)
{
printf ("%i of %i\n", i, j); /* { dg-warning "implicit declaration" } */
- /* { dg-message "include '<stdio.h>' or provide a declaration of 'printf'" "" { target *-*-* } .-1 } */
+ /* { dg-message "include '<stdio.h>' or provide a declaration of 'printf'" "" { target *-*-* } 1 } */
#if 0
/* { dg-begin-multiline-output "" }
9 | printf ("%i of %i\n", i, j);
| ^~~~~~
{ dg-end-multiline-output "" } */
/* { dg-begin-multiline-output "" }
-+++ |+#include <stdio.h>
- 1 | /* Example of a fix-it hint that adds a #include directive,
-....
- 9 | printf ("%i of %i\n", i, j);
- | ^~~~~~
++ |+#include <stdio.h>
+1 | /* Example of a fix-it hint that adds a #include directive,
{ dg-end-multiline-output "" } */
#endif
}