mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-13 17:37:00 +00:00

Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
23 lines
278 B
C
23 lines
278 B
C
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
|
|
// CHECK: ModuleID
|
|
// CHECK-NOT: zeroinitializer
|
|
// CHECK-LABEL: define {{.*}}ptr @f
|
|
|
|
struct s {
|
|
int a;
|
|
};
|
|
|
|
static void *v;
|
|
|
|
static struct s a;
|
|
|
|
static struct s a = {
|
|
10
|
|
};
|
|
|
|
void *f(void)
|
|
{
|
|
if (a.a)
|
|
return v;
|
|
}
|