2010-10-30 00:12:50 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
namespace A {
|
2015-07-06 12:43:58 +08:00
|
|
|
class String; // expected-note {{target of using declaration}}
|
2010-10-30 00:12:50 +08:00
|
|
|
};
|
|
|
|
|
2015-07-06 12:43:58 +08:00
|
|
|
using A::String; // expected-note {{using declaration}}
|
|
|
|
class String; // expected-error {{conflicts with target of using declaration}}
|
2010-10-30 00:12:50 +08:00
|
|
|
|
|
|
|
// rdar://8603569
|
|
|
|
union value {
|
|
|
|
char *String;
|
|
|
|
};
|