summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/pr-impl.c
blob: 60836798d0ca6ec206c6c7654772f2d164cfae18 (plain)
1
2
3
4
5
6
7
/* Test warnings generated by #pragma implementation in the wrong place.  */
/* { dg-do preprocess } */

#pragma implementation "stdlib.h" /* { dg-bogus "appears after" "stdlib.h" } */
#include <stdlib.h>
#include <stdio.h>
#pragma implementation "stdio.h" /* { dg-warning "appears after" "stdio.h" } */
OpenPOWER on IntegriCloud