Files
c3c/test/test_suite/enumerations/inc_assign.c3t
Christoffer Lerno 5c77c9a754 - Change distinct -> typedef.
- Order of attribute declaration is changed for `alias`.
- Added `LANGUAGE_DEV_VERSION` env constant.
- Rename `anyfault` -> `fault`.
- Changed `fault` -> `faultdef`.
- Added `attrdef` instead of `alias` for attribute aliases.
2025-03-15 20:10:47 +01:00

35 lines
513 B
Plaintext

// #target: macos-x64
module test;
import std;
enum Abc
{
ABCD,
OKFEOFKE,
OFKEOFK
}
typedef Bob = inline Abc;
fn void main()
{
Abc y;
y += 1;
Bob gh;
gh += 1;
}
/* #expect: test.ll
entry:
%y = alloca i32, align 4
%gh = alloca i32, align 4
store i32 0, ptr %y, align 4
%0 = load i32, ptr %y, align 4
%add = add i32 %0, 1
store i32 %add, ptr %y, align 4
store i32 0, ptr %gh, align 4
%1 = load i32, ptr %gh, align 4
%add1 = add i32 %1, 1
store i32 %add1, ptr %gh, align 4
ret void
}