[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / AST / attr-swift_newtype.m
blob04ec62426d8cb17975d0f589b3764dbee6db2db2
1 // RUN: %clang_cc1 -ast-dump %s | FileCheck %s
3 typedef int T1 __attribute__((__swift_newtype__(struct)));
4 typedef int T2 __attribute__((__swift_newtype__(enum)));
6 typedef int T3 __attribute__((__swift_wrapper__(struct)));
7 typedef int T4 __attribute__((__swift_wrapper__(enum)));
9 typedef int T5;
10 typedef int T5 __attribute__((__swift_wrapper__(struct)));
11 typedef int T5;
12 // CHECK-LABEL: TypedefDecl {{.+}} T5 'int'
13 // CHECK-NEXT: BuiltinType {{.+}} 'int'
14 // CHECK-NEXT: TypedefDecl {{.+}} T5 'int'
15 // CHECK-NEXT: BuiltinType {{.+}} 'int'
16 // CHECK-NEXT: SwiftNewTypeAttr {{.+}} NK_Struct
17 // CHECK-NEXT: TypedefDecl {{.+}} T5 'int'
18 // CHECK-NEXT: BuiltinType {{.+}} 'int'
19 // CHECK-NEXT: SwiftNewTypeAttr {{.+}} NK_Struct