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