llvm/clang/test/SemaObjC/method-no-context.m

// RUN: %clang_cc1 -fsyntax-only -verify %s

- im0 { // expected-error{{missing context for method declaration}}
  int a; return 0;