[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / AST / ast-dump-msp430-attr.c
blobf228cd8dbdb85926848e2bfc0afbb3e8a49a5b1e
1 // Test without serialization:
2 // RUN: %clang_cc1 -triple msp430-unknown-unknown -ast-dump -ast-dump-filter Test %s \
3 // RUN: | FileCheck --strict-whitespace %s
4 //
5 // Test with serialization:
6 // RUN: %clang_cc1 -triple msp430-unknown-unknown -emit-pch -o %t %s
7 // RUN: %clang_cc1 -x c -triple msp430-unknown-unknown -include-pch %t -ast-dump-all -ast-dump-filter Test /dev/null \
8 // RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
9 // RUN: | FileCheck --strict-whitespace %s
11 __attribute__((interrupt(12))) void Test(void);
12 // CHECK: FunctionDecl{{.*}}Test
13 // CHECK-NEXT: MSP430InterruptAttr