25 lines · c
1// Tests without serialization:2// RUN: %clang_cc1 -triple arm-apple-darwin -ast-dump -ast-dump-filter Test %s \3// RUN: | FileCheck --strict-whitespace %s4//5// RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -ast-dump -ast-dump-filter Test %s \6// RUN: | FileCheck --strict-whitespace %s --check-prefix=CHECK-CMSE7//8// Tests with serialization:9// RUN: %clang_cc1 -triple arm-apple-darwin -emit-pch -o %t %s10// RUN: %clang_cc1 -x c -triple arm-apple-darwin -include-pch %t -ast-dump-all -ast-dump-filter Test /dev/null \11// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \12// RUN: | FileCheck --strict-whitespace %s13//14// RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -emit-pch -o %t %s15// RUN: %clang_cc1 -x c -triple thumbv8m.base-none-eabi -mcmse -include-pch %t -ast-dump-all -ast-dump-filter Test /dev/null \16// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \17// RUN: | FileCheck --strict-whitespace %s18 19__attribute__((interrupt)) void Test(void);20// CHECK: FunctionDecl{{.*}}Test21// CHECK-NEXT: ARMInterruptAttr22 23typedef int (*CmseTest)(int a) __attribute__((cmse_nonsecure_call));24// CHECK-CMSE: TypedefDecl{{.*}}CmseTest{{.*}}__attribute__((cmse_nonsecure_call))25