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/] [20030626-2.c] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
char buf[40]; extern int sprintf (char*, const char*, ...); extern void abort (void); int main() { int i = 0; int l = sprintf (buf, "%s", i++ ? "string" : "other string"); if (l != sizeof ("other string") - 1 || i != 1) abort (); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log