| 1 | // vtest build: !musl? |
| 2 | import gg |
| 3 | |
| 4 | struct Game { |
| 5 | mut: |
| 6 | gg ?gg.Context |
| 7 | } |
| 8 | |
| 9 | fn test_c_struct_with_reserved_field_name() { |
| 10 | mut game := Game{ |
| 11 | gg: none |
| 12 | } |
| 13 | mut cont := gg.new_context( |
| 14 | bg_color: gg.rgb(174, 198, 255) |
| 15 | width: 600 |
| 16 | height: 400 |
| 17 | window_title: 'Polygons' |
| 18 | ) |
| 19 | game.gg = cont |
| 20 | game.gg?.str() |
| 21 | assert true |
| 22 | } |
| 23 |