Files
c3c/test/test_suite/struct/struct_bad_member.c3
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

20 lines
289 B
Plaintext

struct Foo {
void bar; // #error: Members cannot be of
}
alias Void = void;
struct Foo2 {
Void bar; // #error: Members cannot be of
}
typedef Void2 = void;
struct Foo3 {
Void2 bar; // #error: has unknown size
}
fn void main(String[] args) {
Foo foo;
Foo2 foo2;
Foo3 foo3;
}