diff options
Diffstat (limited to 'clang/test/SemaObjC/missing-method-context.m')
-rw-r--r-- | clang/test/SemaObjC/missing-method-context.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/missing-method-context.m b/clang/test/SemaObjC/missing-method-context.m new file mode 100644 index 0000000..1378b36 --- /dev/null +++ b/clang/test/SemaObjC/missing-method-context.m @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 %s -verify -fsyntax-only +- (void)compilerTestAgainst; // expected-error {{missing context for method declaration}} + +void xx(); // expected-error {{expected method body}} |