Files
c3c/test/test_suite/compile_time/mod_ct.c3t
2024-05-16 14:33:11 +02:00

17 lines
314 B
Plaintext

// #target: macos-x64
module test;
fn int main()
{
double a = 4.5 % 5;
double b = -4.5 % 5;
int ai = 4 % 5;
int bi = -4 % 5;
return 0;
}
/* #expect: test.ll
store double 4.500000e+00, ptr %a, align 8
store double -4.500000e+00, ptr %b, align 8
store i32 4, ptr %ai, align 4
store i32 -4, ptr %bi, align 4