freebsd-nq/test/SemaObjC/compound-init.m
2010-05-04 16:12:48 +00:00

8 lines
154 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -verify %s
@interface A
@end
void f() {
(A){ 0 }; // expected-error{{cannot initialize Objective-C class type 'A'}}
}