diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/empty-source-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/empty-source-2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/empty-source-2.c b/gcc/testsuite/gcc.dg/empty-source-2.c new file mode 100644 index 000000000..8ce201c13 --- /dev/null +++ b/gcc/testsuite/gcc.dg/empty-source-2.c @@ -0,0 +1,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 } */ |