mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
17 lines
605 B
C
17 lines
605 B
C
// #target: x64-darwin
|
|
|
|
module const_pointer;
|
|
|
|
private double foo = 17;
|
|
private double bar = 12.0;
|
|
private float xx = 12.0;
|
|
|
|
private void*[3] data = { &foo, &bar, &xx };
|
|
|
|
// #expect: const_pointer.ll
|
|
|
|
@const_pointer.foo = protected global double 1.700000e+01, align 8
|
|
@const_pointer.bar = protected global double 1.200000e+01, align 8
|
|
@const_pointer.xx = protected global float 1.200000e+01, align 4
|
|
@const_pointer.data = protected global [3 x i8*] [i8* bitcast (double* @const_pointer.foo to i8*), i8* bitcast (double* @const_pointer.bar to i8*), i8* bitcast (float* @const_pointer.xx to i8*)], align 16
|