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/] [gcc.c-torture/] [execute/] [20030626-2.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 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.