llvm-for-llvmta/tools/clang/test/SemaObjC/validate-attr-swift_attr.m

12 lines
274 B
Mathematica
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -verify -fsyntax-only %s
// expected-error@+1 {{'swift_attr' attribute takes one argument}}
__attribute__((swift_attr))
@interface I
@end
// expected-error@+1 {{'swift_attr' attribute requires a string}}
__attribute__((swift_attr(1)))
@interface J
@end