mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
17 lines
314 B
Plaintext
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 |