teak-llvm/clang/test/Modules/objc-hidden.m
Manman Ren a58f92f09d Module: for ObjectiveC, be consistent when checking hidden decls.
In MatchAllMethodDeclarations, when checking a hidden decl, be sure
to allow hidden when searching for methods.

rdar://28699972

llvm-svn: 283943
2016-10-11 21:18:20 +00:00

12 lines
371 B
Objective-C

// RUN: rm -rf %t
// RUN: %clang_cc1 -fsyntax-only -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/objc-hidden/System -F %S/Inputs/objc-hidden -verify -x objective-c %s
// expected-no-diagnostics
// Make sure we don't crash with hidden decls.
@import FakeUnavailableObjCFramework;
@implementation UnavailableObjCClass
- (void)someMethod { }
@end