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] - Rev 801

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

// { dg-do run }
// { dg-options "-g" }
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }

volatile int l;

namespace S
{
  int i = 24;
  void __attribute__((noinline))
  f()
  {
    int i = 42;
    l = i;              // { dg-final { gdb-test 14 "i" "42" } }
    {
      extern int i;
      l = i;            // { dg-final { gdb-test 17 "i" "24" } }
    }
  }
}

int
main (void)
{
  S::f ();
  return 0;
}

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

powered by: WebSVN 2.1.0

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