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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using17.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2007 Free Software Foundation
2
// Contributed by Ollie Wild 
3
// { dg-do compile }
4
 
5
namespace M {
6
  struct S {}; // { dg-error "struct M::S" "candidate 2" }
7
}
8
 
9
int S;
10
struct S {}; // { dg-error "candidates are: struct S" "candidate 1" }
11
 
12
using namespace M;
13
 
14
struct S s; // { dg-error "reference to 'S' is ambiguous|invalid type in declaration" "" }

powered by: WebSVN 2.1.0

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