Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/lookup/using17.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Copyright (C) 2007 Free Software Foundation |
2 // Contributed by Ollie Wild <aaw@google.com> | |
3 // { dg-do compile } | |
4 | |
5 namespace M { | |
6 struct S {}; // { dg-message "candidates are: .struct M::S." "candidate 1" } | |
7 } | |
8 | |
9 int S; | |
10 struct S {}; // { dg-message ".struct S." "candidate 2" } | |
11 | |
12 using namespace M; | |
13 | |
14 struct S s; // { dg-error "reference to 'S' is ambiguous|invalid type in declaration" } |