diff options
author | Patrick Beard <pcbeard@mac.com> | 2012-04-06 18:12:22 +0000 |
---|---|---|
committer | Patrick Beard <pcbeard@mac.com> | 2012-04-06 18:12:22 +0000 |
commit | b2f6820773aabff3c5c9e0dbb1cbbbda0d80c41f (patch) | |
tree | 69f8b2976891ffc83299227be23f82c42bc1ac97 /test/PCH/method_pool.m | |
parent | aba3f0f8658b099fabd17f29f67bf6dd8ee5ddfd (diff) | |
download | clang-b2f6820773aabff3c5c9e0dbb1cbbbda0d80c41f.tar.gz |
Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared.
The warning this inhibits, -Wobjc-root-class, is opt-in for now. However, all clang unit tests that would trigger
the warning have been updated to use -Wno-objc-root-class. <rdar://problem/7446698>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH/method_pool.m')
-rw-r--r-- | test/PCH/method_pool.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/PCH/method_pool.m b/test/PCH/method_pool.m index ee537840e0..20010fbd1c 100644 --- a/test/PCH/method_pool.m +++ b/test/PCH/method_pool.m @@ -1,9 +1,9 @@ // Test this without pch. -// RUN: %clang_cc1 -include %S/method_pool.h -fsyntax-only -verify %s +// RUN: %clang_cc1 -include %S/method_pool.h -fsyntax-only -verify -Wno-objc-root-class %s // Test with pch. -// RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/method_pool.h -// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// RUN: %clang_cc1 -x objective-c -Wno-objc-root-class -emit-pch -o %t %S/method_pool.h +// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify -Wno-objc-root-class %s int message_id(id x) { return [x instMethod:17]; // expected-warning{{multiple methods}} |