brintos

brintos / llvm-project-archived public Read only

0
0
Text · 493 B · 139f8ba Raw
14 lines · plain
1// Test this without pch.2// RUN: %clang_cc1 -include %S/method_pool.h -fsyntax-only -verify -Wno-objc-root-class %s3 4// Test with pch.5// RUN: %clang_cc1 -x objective-c -Wno-objc-root-class -emit-pch -o %t %S/method_pool.h6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify -Wno-objc-root-class %s 7 8int message_id(id x) {9   return [x instMethod:17]; // expected-warning{{multiple methods}}10}11 12/* expected-note@method_pool.h:17{{using}} */13/* expected-note@method_pool.h:21{{also}} */14