Author: rsmith Date: Sun Jun 25 21:41:22 2017 New Revision: 306270 URL: http://llvm.org/viewvc/llvm-project?rev=306270&view=rev Log: Testcase missed from r306075.
Added: cfe/trunk/test/Modules/interface-visibility.m Added: cfe/trunk/test/Modules/interface-visibility.m URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/interface-visibility.m?rev=306270&view=auto ============================================================================== --- cfe/trunk/test/Modules/interface-visibility.m (added) +++ cfe/trunk/test/Modules/interface-visibility.m Sun Jun 25 21:41:22 2017 @@ -0,0 +1,29 @@ +// RUN: %clang_cc1 -fmodules -fobjc-arc -x objective-c-module-map %s -fmodule-name=Foo -verify + +module Foo {} + +#pragma clang module contents +#pragma clang module begin Foo + +// expected-no-diagnostics + +#pragma clang module build Foundation +module Foundation {} +#pragma clang module contents +#pragma clang module begin Foundation +@interface NSIndexSet +@end +#pragma clang module end +#pragma clang module endbuild + +#pragma clang module import Foundation + +@interface NSIndexSet (Testing) +- (int)foo; +@end + +static inline int test(NSIndexSet *obj) { + return [obj foo]; +} + +#pragma clang module end _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits