gcc/testsuite/gcc.dg/pch/main-file-warnings.c
raw| 1 | /* PR pch/9471 */ |
| 2 | /* PR pch/47857 */ |
| 3 | /* Test will fail if any warnings get issued while compiling the header into a PCH. */ |
| 4 | #include "main-file-warnings.h" |
| 5 | #pragma once /* { dg-warning "in main file" } */ |
| 6 | #pragma GCC system_header /* { dg-warning "outside include file" } */ |
| 7 | #include_next <stdint.h> /* { dg-warning "in primary source file" } */ |