mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 21:45:46 -04:00

Several tests wouldn't pass when executed on an armv7a_pc_linux triple due to the non-default arm_aapcs calling convention produced on the function definitions in the IR output. Account for this with the application of a little regex. Patch by Ying Yi. llvm-svn: 240971
23 lines
274 B
C
23 lines
274 B
C
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
|
|
// CHECK: ModuleID
|
|
// CHECK-NOT: zeroinitializer
|
|
// CHECK-LABEL: define {{.*}}i8* @f
|
|
|
|
struct s {
|
|
int a;
|
|
};
|
|
|
|
static void *v;
|
|
|
|
static struct s a;
|
|
|
|
static struct s a = {
|
|
10
|
|
};
|
|
|
|
void *f()
|
|
{
|
|
if (a.a)
|
|
return v;
|
|
}
|