1// RUN: rm -rf %t 2// RUN: mkdir %t 3 4// Write out a module with errors make sure it can be read 5// RUN: %clang_cc1 -fmodules -fallow-pcm-with-compiler-errors \ 6// RUN: -fmodules-cache-path=%t -x objective-c -emit-module \ 7// RUN: -fmodule-name=error %S/Inputs/module.map 8// RUN: %clang_cc1 -fmodules -fallow-pcm-with-compiler-errors \ 9// RUN: -fmodules-cache-path=%t -x objective-c -I %S/Inputs \ 10// RUN: -fimplicit-module-maps -ast-print %s | FileCheck %s 11 12// allow-pcm-with-compiler-errors should also allow errors in PCH 13// RUN: %clang_cc1 -fallow-pcm-with-compiler-errors -x c++ -emit-pch \ 14// RUN: -o %t/check.pch %S/Inputs/error.h 15 16@import error; 17 18void test(id x) { 19 [x method]; 20} 21 22// CHECK: @interface Error 23// CHECK-NEXT: - (int)method; 24// CHECK-NEXT: @end 25// CHECK: void test(id x) 26