Displaying 1 result from an estimated 1 matches for "variable_weakref".
2015 Oct 28
3
DragonEgg for gcc-5 and llvm-3.6
.../ExternVariableWeakref.c
The Validator :: c/InternFunctionWeakref.c
The Validator :: c/InternVariableWeakref.c
Since the last four are extremely similar, I give the example of
ExternVariableWeakref.c below:
The test file looks like:
// RUN: %dragonegg -S %s -o - | FileCheck %s
static int variable_weakref __attribute__ ((weakref("bar")));
int *use_variable = &variable_weakref;
// CHECK: @use_variable = unnamed_addr global i32* @bar
// CHECK: @bar = extern_weak global i32
And the output we get (which ideally should match the CHECK sections above)
is:
@use_variable = unnamed_addr globa...