diff options
author | Graydon Hoare <ghoare@apple.com> | 2017-06-29 19:42:35 +0000 |
---|---|---|
committer | Graydon Hoare <ghoare@apple.com> | 2017-06-29 19:42:35 +0000 |
commit | f5fe36787d2caa321b086eaa87844af586a2ef11 (patch) | |
tree | e085afb88512eacefecb3f76e5117e10d1682ae4 /clang/test/Modules/lookup-assert-protocol.m | |
parent | 3d65030c45971bf041b7cdeb4b3b1378cadc4abe (diff) | |
download | bcm5719-llvm-f5fe36787d2caa321b086eaa87844af586a2ef11.tar.gz bcm5719-llvm-f5fe36787d2caa321b086eaa87844af586a2ef11.zip |
[ASTReader] Add test for previous change r306583 / 145692e.
Summary:
Add a test for the change to ASTReader that reproduces the
logic for consolidating multiple ObjC interface definitions to the
case of multiple ObjC protocol definitions.
This test is a modified copy of the test that accompanied the original
change to interfaces, in 2ba1979.
Reviewers: bruno
Reviewed By: bruno
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D34788
llvm-svn: 306732
Diffstat (limited to 'clang/test/Modules/lookup-assert-protocol.m')
-rw-r--r-- | clang/test/Modules/lookup-assert-protocol.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/Modules/lookup-assert-protocol.m b/clang/test/Modules/lookup-assert-protocol.m new file mode 100644 index 00000000000..3c093f1bf15 --- /dev/null +++ b/clang/test/Modules/lookup-assert-protocol.m @@ -0,0 +1,17 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/lookup-assert-protocol %s -verify +// expected-no-diagnostics + +#include "Derive.h" +#import <H3.h> + +__attribute__((objc_root_class)) +@interface Thing<DerivedProtocol> +@end + +@implementation Thing +- (void)test { +} +- (void)test2 { +} +@end |