Disambiguate the name lookup for the data type of anon_uint variable.

llvm-svn: 119353
This commit is contained in:
Johnny Chen 2010-11-16 18:11:55 +00:00
parent 637049515f
commit 7826b0a721
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
namespace { namespace {
typedef unsigned int uint_t; typedef unsigned int my_uint_t;
int i; // Find the line number for anonymous namespace variable i. int i; // Find the line number for anonymous namespace variable i.
} }
@ -53,7 +53,7 @@ namespace A {
int Foo::myfunc(int a) int Foo::myfunc(int a)
{ {
::uint_t anon_uint = 0; ::my_uint_t anon_uint = 0;
A::uint_t a_uint = 1; A::uint_t a_uint = 1;
B::uint_t b_uint = 2; B::uint_t b_uint = 2;
Y::uint_t y_uint = 3; Y::uint_t y_uint = 3;