blob: d2babd357539a50e97364fb95ed2fb7967f5cef9 [file] [log] [blame]
/* { dg-do compile } */
extern char *gets (char *s);
void test_cwe (void)
{
char buf[1024];
gets (buf); /* { dg-warning "never use 'gets' \\\[CWE-242\\\]" } */
}