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-2.C] - Blame information for rev 774

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
static int i;
6
int *p = &i;
7
int main()
8
{
9
  int i;
10
  {
11
    extern int i;
12
    i = 1;
13
    *p = 2;
14
    if (i == 2)
15
      abort ();
16
  }
17
  return 0;
18
}

powered by: WebSVN 2.1.0

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