// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class -x objective-c++ %s
// Test decls inside Objective-C entities are considered to be duplicates of same-name decls outside of these entities.
; // expected-error {{redefinition of 'InProtocol'}}
; // expected-error {{redefinition of 'MethodReturnType'}}
; // expected-error {{redefinition of 'InInterfaceCurliesWithField'}}
; // expected-error {{redefinition of 'InInterfaceCurlies'}}
; // expected-error {{redefinition of 'InInterface'}}
; // expected-error {{redefinition of 'InInterfaceScoped'}}
; // expected-error {{redefinition of 'InCategory'}}
; // expected-error {{redefinition of 'InExtensionCurliesWithField'}}
; // expected-error {{redefinition of 'InExtensionCurlies'}}
; // expected-error {{redefinition of 'InExtension'}}
; // expected-error {{redefinition of 'InImplementationCurliesWithField'}}
; // expected-error {{redefinition of 'InImplementationCurlies'}}
; // expected-error {{redefinition of 'InImplementation'}}
; // expected-error {{redefinition of 'InCategoryImplementation'}}