bolt/deps/llvm-18.1.8/clang/test/SemaObjC/validate-attr-swift_attr.m
2025-02-14 19:21:04 +01:00

11 lines
295 B
Objective-C

// 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 {{expected string literal as argument of 'swift_attr' attribute}}
__attribute__((swift_attr(1)))
@interface J
@end