URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [builtins/] [lib/] [fprintf.c] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
#include <stdio.h> #include <stdarg.h> extern void abort (void); extern int inside_main; int fprintf (FILE *fp, const char *string, ...) { va_list ap; int r; #ifdef __OPTIMIZE__ if (inside_main) abort(); #endif va_start (ap, string); r = vfprintf (fp, string, ap); va_end (ap); return r; } /* Locking stdio doesn't matter for the purposes of this test. */ int fprintf_unlocked (FILE *fp, const char *string, ...) { va_list ap; int r; #ifdef __OPTIMIZE__ if (inside_main) abort(); #endif va_start (ap, string); r = vfprintf (fp, string, ap); va_end (ap); return r; }
Go to most recent revision | Compare with Previous | Blame | View Log