24 lines · c
1// Test without serialization:2// RUN: %clang_cc1 -triple x86_64-pc-linux -ast-dump -ast-dump-filter Test %s \3// RUN: | FileCheck --strict-whitespace %s4//5// Test with serialization:6// RUN: %clang_cc1 -triple x86_64-pc-linux -emit-pch -o %t %s7// RUN: %clang_cc1 -x c -triple x86_64-pc-linux -include-pch %t \8// RUN: -ast-dump-all -ast-dump-filter Test /dev/null \9// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \10// RUN: | FileCheck --strict-whitespace %s11 12void TestUnattributedMVF(void);13// CHECK: FunctionDecl 0x{{[^ ]*}} <{{.*}}> col:{{[0-9]*}} multiversion TestUnattributedMVF14__attribute__((target("default"))) void TestUnattributedMVF(void);15// CHECK: FunctionDecl 0x{{[^ ]*}} prev 0x{{[^ ]*}} <{{.*}}> col:{{[0-9]*}} multiversion TestUnattributedMVF16 17__attribute__((target("mmx"))) void TestNonMVF(void);18// CHECK: FunctionDecl 0x{{[^ ]*}} <{{.*}}> col:{{[0-9]*}} TestNonMVF19 20__attribute__((target("mmx"))) void TestRetroMVF(void);21// CHECK: FunctionDecl 0x{{[^ ]*}} <{{.*}}> col:{{[0-9]*}} multiversion TestRetroMVF22__attribute__((target("sse"))) void TestRetroMVF(void);23// CHECK: FunctionDecl 0x{{[^ ]*}} <{{.*}}> col:{{[0-9]*}} multiversion TestRetroMVF24