diff options
Diffstat (limited to 'clang/test/Modules')
5 files changed, 29 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/lookup-assert-protocol/Base.h b/clang/test/Modules/Inputs/lookup-assert-protocol/Base.h new file mode 100644 index 00000000000..5c9506fa5cd --- /dev/null +++ b/clang/test/Modules/Inputs/lookup-assert-protocol/Base.h @@ -0,0 +1,3 @@ +@protocol BaseProtocol +- (void) test; +@end diff --git a/clang/test/Modules/Inputs/lookup-assert-protocol/Derive.h b/clang/test/Modules/Inputs/lookup-assert-protocol/Derive.h new file mode 100644 index 00000000000..fdcde6158a7 --- /dev/null +++ b/clang/test/Modules/Inputs/lookup-assert-protocol/Derive.h @@ -0,0 +1,4 @@ +#include "Base.h" +@protocol DerivedProtocol<BaseProtocol> +- (void) test2; +@end diff --git a/clang/test/Modules/Inputs/lookup-assert-protocol/H3.h b/clang/test/Modules/Inputs/lookup-assert-protocol/H3.h new file mode 100644 index 00000000000..3d8f878905d --- /dev/null +++ b/clang/test/Modules/Inputs/lookup-assert-protocol/H3.h @@ -0,0 +1 @@ +#include "Base.h" diff --git a/clang/test/Modules/Inputs/lookup-assert-protocol/module.map b/clang/test/Modules/Inputs/lookup-assert-protocol/module.map new file mode 100644 index 00000000000..e8a89eb095a --- /dev/null +++ b/clang/test/Modules/Inputs/lookup-assert-protocol/module.map @@ -0,0 +1,4 @@ +module X { + header "H3.h" + export * +} 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 |

