]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/Modules/lookup.m
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / Modules / lookup.m
CommitLineData
223e47cc
LB
1
2// lookup_left.h: expected-note{{using}}
3// lookup_right.h: expected-note{{also found}}
4@__experimental_modules_import lookup_left_objc;
5@__experimental_modules_import lookup_right_objc;
6
7void test(id x) {
8 [x method]; // expected-warning{{multiple methods named 'method' found}}
9}
10
11// RUN: rm -rf %t
12// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map
13// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.map
14// RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -verify %s
15// RUN: %clang_cc1 -fmodules -ast-print -x objective-c -fmodule-cache-path %t %s | FileCheck -check-prefix=CHECK-PRINT %s
16
17// CHECK-PRINT: - (int) method;
18// CHECK-PRINT: - (double) method
19// CHECK-PRINT: void test(id x)
20