summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fixits-pr84852-1.c
blob: 346626b4eb975f6a72bc0d264280f7995c28abd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* This is padding (to avoid the output containing DejaGnu directives).  */

/* We need -fdiagnostics-show-caret to trigger the ICE.  */

/* { dg-options "-fdiagnostics-show-caret -pedantic-errors -Wno-implicit-function-declaration" } */

#line 3482810481 /* { dg-error "line number out of range" } */
/* { dg-begin-multiline-output "" }
 #line 3482810481
       ^~~~~~~~~~
   { dg-end-multiline-output "" } */

int foo (void) { return strlen(""); }

/* { dg-warning "incompatible implicit declaration of built-in function 'strlen'" "" { target *-*-* } -812156810 } */
/* { dg-message "include '<string.h>' or provide a declaration of 'strlen'" "" { target *-*-* } 1 } */
#if 0
{ dg-begin-multiline-output "" }
+#include <string.h>
 /* This is padding (to avoid the output containing DejaGnu directives).  */
{ dg-end-multiline-output "" }
#endif