mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-09 10:06:07 +00:00

(which is ill-formed) with an initializer list. Also, change the fallback from an assertion to a generic error message, which is far friendlier. Fixes <rdar://problem/7730948>. llvm-svn: 102930
8 lines
154 B
Objective-C
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'}}
|
|
}
|