comparison gcc/testsuite/gcc.dg/fixits-pr84852-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* This is padding (to avoid the output containing DejaGnu directives). */
2
3 /* We need -fdiagnostics-show-caret to trigger the ICE. */
4
5 /* { dg-options "-fdiagnostics-show-caret -pedantic-errors -Wno-implicit-function-declaration" } */
6
7 #line 3482810481 /* { dg-error "line number out of range" } */
8 /* { dg-begin-multiline-output "" }
9 #line 3482810481
10 ^~~~~~~~~~
11 { dg-end-multiline-output "" } */
12
13 int foo (void) { return strlen(""); }
14
15 /* { dg-warning "incompatible implicit declaration of built-in function 'strlen'" "" { target *-*-* } -812156810 } */
16 /* { dg-message "include '<string.h>' or provide a declaration of 'strlen'" "" { target *-*-* } 1 } */
17 #if 0
18 { dg-begin-multiline-output "" }
19 +#include <string.h>
20 /* This is padding (to avoid the output containing DejaGnu directives). */
21 { dg-end-multiline-output "" }
22 #endif