Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
freestanding-nonint-main.C
blob: a8571cc6f0b886b8e707cab48001c20fef89b918 [
file
] [
log
] [
blame
]
/* 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" } */