OpenCores
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] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
char buf[40];
2
 
3
extern int sprintf (char*, const char*, ...);
4
extern void abort (void);
5
 
6
int main()
7
{
8
  int i = 0;
9
  int l = sprintf (buf, "%s", i++ ? "string" : "other string");
10
  if (l != sizeof ("other string") - 1 || i != 1)
11
    abort ();
12
  return 0;
13
}
14
 

powered by: WebSVN 2.1.0

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