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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [pr45330.C] - Rev 774

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

// { dg-do compile }
// Search std, __cxxabiv1, and global namespaces, plus one more.
// { dg-options "--param cxx-max-namespaces-for-diagnostic-help=4" }

#define NSPACE(NAME) namespace NAME { int foo; }

namespace A
{
  int foo;                      // { dg-message "A::foo" "suggested alternative" }
}

namespace B
{
  int foo;
}

namespace C
{
  int foo;
}

namespace D
{
  int foo;
}

namespace E
{
  int foo;
}

int bar()
{
  return foo;                   // { dg-error "was not declared" }
  // { dg-message "maximum limit of 4 namespaces" "maximum limit" { target *-*-* } 34 }
  // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 34 }
}

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.