URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* Test for security warning when non-literal format has no arguments. */
|
/* Test for security warning when non-literal format has no arguments. */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
|
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=gnu99 -Wformat -Wformat-security" } */
|
/* { dg-options "-std=gnu99 -Wformat -Wformat-security" } */
|
|
|
#include "format.h"
|
#include "format.h"
|
|
|
void
|
void
|
foo (char *s)
|
foo (char *s)
|
{
|
{
|
printf (s); /* { dg-warning "no format arguments" "security warning" } */
|
printf (s); /* { dg-warning "no format arguments" "security warning" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.