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