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