1 // Tests without serialization:
2 // RUN: %clang_cc1 -triple arm-apple-darwin -ast-dump -ast-dump-filter Test %s \
3 // RUN: | FileCheck --strict-whitespace %s
5 // RUN: %clang_cc1 -triple armv8m.base-none-eabi -mcmse -ast-dump -ast-dump-filter Test %s \
6 // RUN: | FileCheck --strict-whitespace %s --check-prefix=CHECK-CMSE
8 // Tests with serialization:
9 // RUN: %clang_cc1 -triple arm-apple-darwin -emit-pch -o %t %s
10 // 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 %s
14 // RUN: %clang_cc1 -triple armv8m.base-none-eabi -mcmse -emit-pch -o %t %s
15 // RUN: %clang_cc1 -x c -triple armv8m.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 %s
19 __attribute__((interrupt
)) void Test(void);
20 // CHECK: FunctionDecl{{.*}}Test
21 // CHECK-NEXT: ARMInterruptAttr
23 typedef int (*CmseTest
)(int a
) __attribute__((cmse_nonsecure_call
));
24 // CHECK-CMSE: TypedefDecl{{.*}}CmseTest{{.*}}__attribute__((cmse_nonsecure_call))