def err_sizeof_forward_interface : Error<
"invalid application of '%select{alignof|sizeof}1' to a forward declared"
" interface %0">;
-def err_sizeof_nonfragile_interface : Error<
+def err_sizeof_nonfragile_interface : Warning<
"invalid application of '%select{alignof|sizeof}1' to interface %0 in "
"non-fragile ABI">;
def err_atdef_nonfragile_interface : Error<
@end
// size == 4
-int g1[ sizeof(I0) // expected-error {{invalid application of 'sizeof' to interface 'I0' in non-fragile ABI}}
+int g1[ sizeof(I0) // expected-warning {{invalid application of 'sizeof' to interface 'I0' in non-fragile ABI}}
== 4 ? 1 : -1];
@implementation I0
// size == 4 (we do not include extended properties in the
// sizeof).
-int g2[ sizeof(I0) // expected-error {{invalid application of 'sizeof' to interface 'I0' in non-fragile ABI}}
+int g2[ sizeof(I0) // expected-warning {{invalid application of 'sizeof' to interface 'I0' in non-fragile ABI}}
== 4 ? 1 : -1];
@interface I1