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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [builtins1.C] - Blame information for rev 316

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/14791
2
// Test if builtins with FILE * arguments work
3
// { dg-options "-O2 -Wformat" }
4
 
5
typedef struct _FILE FILE;
6
FILE *stderr;
7
extern "C" int printf (__const char *__restrict, ...);
8
extern "C" int fprintf (FILE *__restrict, __const char *__restrict, ...);
9
 
10
int main ()
11
{
12
  printf ("%d\n", 1, 1);                // { dg-warning "too many arguments for format" }
13
  fprintf (stderr, "%d\n", 1, 1);       // { dg-warning "too many arguments for format" }
14
}

powered by: WebSVN 2.1.0

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