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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [nested-extern-1.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do run } */
2
// { dg-additional-sources "nested-extern.cc" }
3
/* PR 31775 */
4
extern "C" void abort();
5
extern int *p;
6
int main()
7
{
8
  extern int i;
9
  i = 1;
10
  *p = 2;
11
  if (i == 2)
12
    abort ();
13
  return 0;
14
}
15
 
16
static int i;
17
int *p = &i;

powered by: WebSVN 2.1.0

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