gcc/testsuite/gcc.dg/pch/warn-1.c
raw| 1 | /* { dg-options "-I. -Winvalid-pch" } */ |
| 2 | |
| 3 | #define DEFINED_VALUE 3 |
| 4 | |
| 5 | #include "warn-1.h"/* { dg-warning "not used because .DEFINED_VALUE. is defined" } */ |
| 6 | /* { dg-error "No such file" "no such file" { target *-*-* } 0 } */ |
| 7 | /* { dg-error "they were invalid" "invalid files" { target *-*-* } 0 } */ |
| 8 | /* { dg-message "terminated" "" { target *-*-* } 0 } */ |
| 9 | |
| 10 | |
| 11 | int main(void) |
| 12 | { |
| 13 | return DEFINED_VALUE; |
| 14 | } |