aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/freestanding-nonint-main.C
blob: a8571cc6f0b886b8e707cab48001c20fef89b918 (plain)
1
2
3
4
5
/* Check that we get the right warning for nonint main in freestanding. */
/* { dg-do compile } */
/* { dg-options "-ffreestanding -Wreturn-type" } */

const char *main() {} /* { dg-warning "-Wreturn-type" } */