mirror of
https://github.com/ziglang/zig.git
synced 2026-02-17 23:10:09 +00:00
parent
6ff70d3c31
commit
c30106c906
@ -611,3 +611,12 @@ test "function call result coerces from tagged union to the tag" {
|
||||
S.doTheTest();
|
||||
comptime S.doTheTest();
|
||||
}
|
||||
|
||||
test "0-sized extern union definition" {
|
||||
const U = extern union {
|
||||
a: void,
|
||||
const f = 1;
|
||||
};
|
||||
|
||||
expect(U.f == 1);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user