Home | History | Annotate | Download | only in Modules
      1 
      2 // lookup_left.h: expected-note{{using}}
      3 // lookup_right.h: expected-note{{also found}}
      4 @import lookup_left_objc;
      5 @import lookup_right_objc;
      6 
      7 void 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 -fmodules-cache-path=%t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map
     13 // RUN: %clang_cc1 -fmodules -fmodules-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 -fmodules-cache-path=%t -verify %s
     15 // RUN: %clang_cc1 -fmodules -ast-print -x objective-c -fmodules-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 
     21