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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Warray-bounds-5.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3 -Wall" } */
3
/* based on PR 37861 */
4
 
5
extern int printf (__const char *__restrict __format, ...);
6
 
7
static int f2(char formatstr[10][100])
8
{
9
  int anz;
10
  for( anz = 0; anz < 10; ++anz ) {
11
    printf( "%d %s\n", anz, formatstr[anz] );
12
  }
13
  return anz;
14
}
15
 
16
 
17
static   char formatstr[10][100];
18
int main( void )
19
{
20
  int anz;
21
  anz = f2(formatstr);
22
  printf( "   %d\n",anz);
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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