brintos

brintos / llvm-project-archived public Read only

0
0
Text · 615 B · f228cd8 Raw
14 lines · c
1// Test without serialization:2// RUN: %clang_cc1 -triple msp430-unknown-unknown -ast-dump -ast-dump-filter Test %s \3// RUN: | FileCheck --strict-whitespace %s4//5// Test with serialization:6// RUN: %clang_cc1 -triple msp430-unknown-unknown -emit-pch -o %t %s7// 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 %s10 11__attribute__((interrupt(12))) void Test(void);12// CHECK: FunctionDecl{{.*}}Test13// CHECK-NEXT: MSP430InterruptAttr14