Displaying 1 result from an estimated 1 matches for "use_variable".
Did you mean:
set_variable
2015 Oct 28
3
DragonEgg for gcc-5 and llvm-3.6
...ref.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 global i32* @variable_weakref
@variable_weakref = internal global i...