OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [format/] [sys_format.c] - Rev 689

Compare with Previous | Blame | View Log

/* Test system default printf formatter specifiers.  */
/* Origin: Kai Tietz <KaiTietz.@onevision.com> */
/* { dg-do compile { target { *-*-mingw* } } } */
/* { dg-options "-std=gnu89" } */
 
#define USE_SYSTEM_FORMATS
#include "format.h"
 
__attribute__((format(printf, 1, 2))) void foo (const char *, ...);
 
void bar (long long v1, long v2, int v3)
{
  foo ("%I64d %I32d %ld %d\n", v1, v2, v2, v3);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.