view gcc/testsuite/gcc.dg/format/pr78304.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-do compile { target inttypes_types } } */
/* { dg-options "-O2 -Wall -Wextra" } */

#include <inttypes.h>
#include <stdio.h>

void test (const char *msg)
{
  printf ("size: %" PRIu32 "\n", msg); /* { dg-warning "expects argument of type" } */
}