llvm-for-llvmta/tools/clang/test/SemaObjC/compound-init.m

8 lines
154 B
Mathematica
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
@interface A
@end
void f() {
(A){ 0 }; // expected-error{{cannot initialize Objective-C class type 'A'}}
}