1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 @class ABGroupImportFilesScope; // expected-note {{forward declaration of class here}}
6 - (id) filenames __attribute__((deprecated)); // expected-note {{'filenames' has been explicitly marked deprecated here}}
10 - (id) Meth : (ABGroupImportFilesScope*) scope;
11 - (id) filenames __attribute__((deprecated));
12 - (id)initWithAccount: (id)account filenames:(id)filenames;
16 - (id) Meth : (ABGroupImportFilesScope*) scope
18 id p = [self initWithAccount : 0 filenames :[scope filenames]]; // expected-warning {{'filenames' may be deprecated because the receiver type is unknown}}
21 - (id) filenames { return 0; }
22 - (id)initWithAccount: (id)account filenames:(id)filenames { return 0; }