summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/error1.C
blob: 3eb4b97213277ddec30366df916575b6996d487c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/17609
// Origin: <papadopo@shfj.cea.fr>
// { dg-do compile }

namespace N { int i; }		// { dg-message "N::i" }
void foo() { i; }   // { dg-error "not declared" }
  // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 6 }

using namespace N;
void bar() { i; }