brintos

brintos / llvm-project-archived public Read only

0
0
Text · 538 B · 7efe626 Raw
13 lines · cpp
1// RUN: %clang_cc1 -triple riscv64 -ast-dump -ast-dump-filter c23 -std=c23 -x c %s | FileCheck --strict-whitespace %s2 3// CHECK:       FunctionDecl{{.*}}pre_c234// CHECK-NEXT:    |-CompoundStmt5// CHECK-NEXT:    `-RISCVInterruptAttr{{.*}}supervisor6__attribute__((interrupt("supervisor"))) void pre_c23(){}7 8// CHECK:       FunctionDecl{{.*}}in_c239// CHECK-NEXT:    |-CompoundStmt10// CHECK-NEXT:    `-RISCVInterruptAttr{{.*}}supervisor11// CHECK-NOT:     `-RISCVInterruptAttr{{.*}}machine12[[gnu::interrupt("supervisor")]] void in_c23(){}13