summaryrefslogtreecommitdiff
path: root/test/Modules/objc_redef.m
blob: 2e57f41bc66247210bde6dbc087468447aed4a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@import redeclarations_left;
@import weird_objc;

int test(id x) {
  return x->wibble;
}

// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -emit-module -fmodule-name=redeclarations_left %S/Inputs/module.map
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -emit-module -fmodule-name=weird_objc %S/Inputs/module.map
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify
// expected-no-diagnostics