bolt/deps/llvm-18.1.8/clang/test/SemaObjC/class-extension-after-implementation.m

11 lines
291 B
Mathematica
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
@interface A @end
@implementation A @end // expected-note {{class implementation is declared here}}
@interface A () // expected-error {{cannot declare class extension for 'A' after class implementation}}
-(void) im0;
@end