Tests fail on ARM targets due to ABI name between define and void. Added reg ex to skip.
Patch by Glenn Howe (and expanded on by Douglas Yung)!
Differential Revision: https://reviews.llvm.org/D33410
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312181
91177308-0d34-0410-b5e6-
96231b3b80d8
// Test to ensure -emit-llvm profile-sample-accurate is honored by clang.
// RUN: %clang -S -emit-llvm %s -fprofile-sample-accurate -o - | FileCheck %s
-// CHECK: define void @foo()
+// CHECK: define {{.*}} void @foo()
// CHECK: attributes {{.*}} "profile-sample-accurate"
void foo() {
}
// RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s
// RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm-bc -o - | llvm-dis -o - | FileCheck %s
-// CHECK: define void @foo()
+// CHECK: define {{.*}} void @foo()
void foo() {
}
// RUN: llvm-lto -thinlto -o %t %t.o
// RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s
-// CHECK: define void @foo()
+// CHECK: define {{.*}} void @foo()
// CHECK: attributes {{.*}} "profile-sample-accurate"
void foo() {
}