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/] [compile/] [20010518-2.c] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
/* This test fails on HC11/HC12 when it is compiled without -mshort because
4
   the array is too large (INT_MAX/2 > 64K).  Force to use 16-bit ints
5
   for it.  */
6
/* { dg-options "-w -mshort" { target m6811-*-* m6812-*-* } } */
7
 
8
/* Large static storage.  */
9
 
10
#include <limits.h>
11
 
12
static volatile char chars_1[INT_MAX / 2];
13
static volatile char chars_2[1];
14
 
15
int
16
foo (void)
17
{
18
  chars_1[10] = 'y';
19
  chars_2[0] = 'x';
20
}

powered by: WebSVN 2.1.0

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