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)));
10 typedef int T5 __attribute__((__swift_wrapper__(struct)));
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