brintos

brintos / llvm-project-archived public Read only

0
0
Text · 875 B · d831e5d Raw
23 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-unknown -std=c++17 -Wno-dynamic-exception-spec -ast-dump %s | FileCheck -strict-whitespace %s2 3struct A {};4struct B {};5 6typedef void (type1)() noexcept(10 > 5);7 8// CHECK:      TypedefDecl {{.*}} type1 'void () noexcept(10 > 5)'9// CHECK-NEXT: `-ParenType {{.*}}10// CHECK-NEXT:   `-FunctionProtoType {{.*}} 'void () noexcept(10 > 5)' exceptionspec_noexcept_true cdecl11// CHECK-NEXT:     |-NoexceptExpr: ConstantExpr {{.*}} 'bool'12// CHECK-NEXT:     | `-value: Int 113// CHECK-NEXT:     `-BuiltinType {{.*}} 'void'14 15typedef void (type2)() throw(A, B);16 17// CHECK:      TypedefDecl {{.*}} type2 'void () throw(A, B)'18// CHECK-NEXT: `-ParenType {{.*}}19// CHECK-NEXT:   `-FunctionProtoType {{.*}} 'void () throw(A, B)' exceptionspec_dynamic cdecl20// CHECK-NEXT:     |-Exceptions: 'A', 'B'21// CHECK-NEXT:     `-BuiltinType {{.*}} 'void'22 23