xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/objc_redef.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc@import redeclarations_left;
2f4a2713aSLionel Sambuc@import weird_objc;
3f4a2713aSLionel Sambuc
4f4a2713aSLionel Sambucint test(id x) {
5f4a2713aSLionel Sambuc  return x->wibble;
6f4a2713aSLionel Sambuc}
7f4a2713aSLionel Sambuc
8f4a2713aSLionel Sambuc// RUN: rm -rf %t
9f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -emit-module -fmodule-name=redeclarations_left %S/Inputs/module.map
10f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -emit-module -fmodule-name=weird_objc %S/Inputs/module.map
11*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -verify
12f4a2713aSLionel Sambuc// expected-no-diagnostics
13f4a2713aSLionel Sambuc
14