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

/* { dg-warning "ISO C forbids an empty translation unit" "empty" { target *-*-* } 6 } */