1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
18 return index; // expected-error {{instance variable 'index' accessed in class method}}
31 return index; // expected-error {{call to undeclared library function 'index'}} \
32 // expected-note {{include the header <strings.h> or explicitly provide a declaration for 'index'}} \
33 // expected-error {{incompatible pointer to integer conversion returning}}
37 return index; // expected-error {{incompatible pointer to integer conversion returning}}