clang/test/SemaObjC/validate-attr-swift_attr.m
raw| 1 | // RUN: %clang_cc1 -verify -fsyntax-only %s |
| 2 | |
| 3 | // expected-error@+1 {{'swift_attr' attribute takes one argument}} |
| 4 | __attribute__((swift_attr)) |
| 5 | @interface I |
| 6 | @end |
| 7 | |
| 8 | // expected-error@+1 {{expected string literal as argument of 'swift_attr' attribute}} |
| 9 | __attribute__((swift_attr(1))) |
| 10 | @interface J |
| 11 | @end |