mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Updated fix of #2218
This commit is contained in:
15
test/test_suite/distinct/distinct_bitstruct_conv.c3
Normal file
15
test/test_suite/distinct/distinct_bitstruct_conv.c3
Normal file
@@ -0,0 +1,15 @@
|
||||
typedef Foo = int;
|
||||
|
||||
bitstruct Bar : Foo
|
||||
{
|
||||
bool a;
|
||||
}
|
||||
|
||||
fn int main()
|
||||
{
|
||||
Bar b;
|
||||
(Foo)b;
|
||||
(int)b;
|
||||
($typefrom(Bar.inner))b;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user