[PATCH] D34788: [ASTReader] Add test for previous change r306583 / 145692e.
Graydon Hoare via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 29 12:42:51 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL306732: [ASTReader] Add test for previous change r306583 / 145692e. (authored by graydon).
Repository:
rL LLVM
https://reviews.llvm.org/D34788
Files:
cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/Base.h
cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/Derive.h
cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/H3.h
cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/module.map
cfe/trunk/test/Modules/lookup-assert-protocol.m
Index: cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/module.map
===================================================================
--- cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/module.map
+++ cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/module.map
@@ -0,0 +1,4 @@
+module X {
+ header "H3.h"
+ export *
+}
Index: cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/H3.h
===================================================================
--- cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/H3.h
+++ cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/H3.h
@@ -0,0 +1 @@
+#include "Base.h"
Index: cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/Base.h
===================================================================
--- cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/Base.h
+++ cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/Base.h
@@ -0,0 +1,3 @@
+ at protocol BaseProtocol
+- (void) test;
+ at end
Index: cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/Derive.h
===================================================================
--- cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/Derive.h
+++ cfe/trunk/test/Modules/Inputs/lookup-assert-protocol/Derive.h
@@ -0,0 +1,4 @@
+#include "Base.h"
+ at protocol DerivedProtocol<BaseProtocol>
+- (void) test2;
+ at end
Index: cfe/trunk/test/Modules/lookup-assert-protocol.m
===================================================================
--- cfe/trunk/test/Modules/lookup-assert-protocol.m
+++ cfe/trunk/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))
+ at interface Thing<DerivedProtocol>
+ at end
+
+ at implementation Thing
+- (void)test {
+}
+- (void)test2 {
+}
+ at end
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34788.104724.patch
Type: text/x-patch
Size: 1919 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170629/28da3fc7/attachment.bin>
More information about the cfe-commits
mailing list