summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/empty-source-3.c
blob: 0fd7be77754e4cf48ad3a0ad8a7935c146fd7eaf (plain)
1
2
3
4
5
6
7
/* Test diagnostic for an empty source file.  Test with
   -pedantic-errors.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-pedantic-errors" } */

/* { dg-error "ISO C forbids an empty translation unit" "empty" { target *-*-* } 7 } */