summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/protocol-redefinition
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2018-06-30 00:49:27 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2018-06-30 00:49:27 +0000
commit7dcf23ed83d0094386aa438db3b47ec0aacf149d (patch)
treeaa8f4a5fd24b4cd7e3d933b547c26cd3a25ec272 /clang/test/Modules/Inputs/protocol-redefinition
parent7c557f804d3a0b797e78722bebb285923bf8548c (diff)
downloadbcm5719-llvm-7dcf23ed83d0094386aa438db3b47ec0aacf149d.tar.gz
bcm5719-llvm-7dcf23ed83d0094386aa438db3b47ec0aacf149d.zip
Add protocol redefinition to the current scope/context
Not doing so causes the AST writter to assert since the decl in question never gets emitted. This is fine when modules is not used, but otherwise we need to serialize something other than garbage. rdar://problem/39844933 Differential Revision: https://reviews.llvm.org/D47297 llvm-svn: 336031
Diffstat (limited to 'clang/test/Modules/Inputs/protocol-redefinition')
-rw-r--r--clang/test/Modules/Inputs/protocol-redefinition/Base.framework/Headers/Base.h3
-rw-r--r--clang/test/Modules/Inputs/protocol-redefinition/Base.framework/Modules/module.modulemap4
-rw-r--r--clang/test/Modules/Inputs/protocol-redefinition/Kit.framework/Headers/Kit.h6
-rw-r--r--clang/test/Modules/Inputs/protocol-redefinition/Kit.framework/Modules/module.modulemap4
4 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/protocol-redefinition/Base.framework/Headers/Base.h b/clang/test/Modules/Inputs/protocol-redefinition/Base.framework/Headers/Base.h
new file mode 100644
index 00000000000..e3fe33c1bdb
--- /dev/null
+++ b/clang/test/Modules/Inputs/protocol-redefinition/Base.framework/Headers/Base.h
@@ -0,0 +1,3 @@
+@protocol Foo
+- (void)someMethodOnFoo;
+@end
diff --git a/clang/test/Modules/Inputs/protocol-redefinition/Base.framework/Modules/module.modulemap b/clang/test/Modules/Inputs/protocol-redefinition/Base.framework/Modules/module.modulemap
new file mode 100644
index 00000000000..0366bb4f039
--- /dev/null
+++ b/clang/test/Modules/Inputs/protocol-redefinition/Base.framework/Modules/module.modulemap
@@ -0,0 +1,4 @@
+framework module Base {
+ header "Base.h"
+ export *
+} \ No newline at end of file
diff --git a/clang/test/Modules/Inputs/protocol-redefinition/Kit.framework/Headers/Kit.h b/clang/test/Modules/Inputs/protocol-redefinition/Kit.framework/Headers/Kit.h
new file mode 100644
index 00000000000..93384c294f1
--- /dev/null
+++ b/clang/test/Modules/Inputs/protocol-redefinition/Kit.framework/Headers/Kit.h
@@ -0,0 +1,6 @@
+#import <Base/Base.h>
+
+// REDECLARATION
+@protocol Foo
+- (void)someMethodOnFoo;
+@end
diff --git a/clang/test/Modules/Inputs/protocol-redefinition/Kit.framework/Modules/module.modulemap b/clang/test/Modules/Inputs/protocol-redefinition/Kit.framework/Modules/module.modulemap
new file mode 100644
index 00000000000..2b790f44965
--- /dev/null
+++ b/clang/test/Modules/Inputs/protocol-redefinition/Kit.framework/Modules/module.modulemap
@@ -0,0 +1,4 @@
+framework module Kit {
+ header "Kit.h"
+ export *
+} \ No newline at end of file
OpenPOWER on IntegriCloud