Skip to content

Commit f570f9b

Browse files
committed
tests: add test case for reference to cast
1 parent c86abb3 commit f570f9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/casts/src/casts.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ void cast_stuff(void) {
3030

3131
bool b = true;
3232
float x15 = b;
33+
34+
// reference applied to a cast requires parens on Rust side
35+
int * x = &(int){0};
3336
}

0 commit comments

Comments
 (0)