| 1 |
// RUN: %clang_cc1 -verify -fsyntax-only %s |
| 2 |
|
| 3 |
@interface NSString |
| 4 |
@end |
| 5 |
|
| 6 |
typedef NSString *NSStringAlias __attribute__((__swift_bridged_typedef__)); |
| 7 |
|
| 8 |
typedef int IntAlias __attribute__((__swift_bridged_typedef__)); |
| 9 |
|
| 10 |
struct __attribute__((swift_bridged_typedef)) S {}; |
| 11 |
// expected-error@-1 {{'swift_bridged_typedef' attribute only applies to typedefs}} |
| 12 |
|
| 13 |
typedef unsigned char UnsignedChar __attribute__((__swift_bridged_typedef__("UnsignedChar"))); |
| 14 |
// expected-error@-1 {{'__swift_bridged_typedef__' attribute takes no arguments}} |