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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [guality/] [redeclaration1.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-options "-g" }
3
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
4
 
5
volatile int l;
6
 
7
namespace S
8
{
9
  int i = 24;
10
  void __attribute__((noinline))
11
  f()
12
  {
13
    int i = 42;
14
    l = i;              // { dg-final { gdb-test 14 "i" "42" } }
15
    {
16
      extern int i;
17
      l = i;            // { dg-final { gdb-test 17 "i" "24" } }
18
    }
19
  }
20
}
21
 
22
int
23
main (void)
24
{
25
  S::f ();
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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