| 1 | // Test, that the autogenerated `free` method compiles, |
| 2 | // on a struct that has field names that are C/C++ keywords. |
| 3 | |
| 4 | struct Class { |
| 5 | class string |
| 6 | register string |
| 7 | namespace string |
| 8 | normal string |
| 9 | } |
| 10 | |
| 11 | fn main() { |
| 12 | class := &Class{'abc', '123', '456', 'xyz'} |
| 13 | println(class) |
| 14 | class.free() |
| 15 | } |
| 16 |