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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [suggestions1.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 compile }
2
 
3
namespace N { namespace M { int foo; } } // { dg-message "N::M::foo" }
4
int f (void) { return N::foo; }          // { dg-error "not a member" }
5
// { dg-message "suggested alternative" "missing namespace" { target *-*-* } 4 }
6
 
7
int g (void) { return ::foo; }  // { dg-error "not been declared" }
8
// { dg-message "suggested alternative" "omitted namespace" { target *-*-* } 7 }

powered by: WebSVN 2.1.0

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