brintos

brintos / llvm-project-archived public Read only

0
0
Text · 443 B · c751109 Raw
16 lines · plain
1// RUN: %clang_cc1 -verify -fsyntax-only %s2 3// expected-error@+1 {{'swift_attr' attribute takes one argument}}4__attribute__((swift_attr))5@interface I6@end7 8// expected-error@+1 {{expected string literal as argument of 'swift_attr' attribute}}9__attribute__((swift_attr(1)))10@interface J11@end12 13@interface Error<T: __attribute__((swift_attr(1))) id>14// expected-error@-1 {{expected string literal as argument of 'swift_attr' attribute}}15@end16