| 1 | // vtest vflags: -no-skip-unused |
| 2 | type ALcharptr = &char |
| 3 | |
| 4 | fn return_text_one() ALcharptr { |
| 5 | return ALcharptr(''.str) |
| 6 | } |
| 7 | |
| 8 | fn return_text_two() &char { |
| 9 | return ''.str |
| 10 | } |
| 11 | |
| 12 | fn get_one() string { |
| 13 | s := return_text_one() |
| 14 | return unsafe { cstring_to_vstring(s) } |
| 15 | } |
| 16 | |
| 17 | fn get_two() string { |
| 18 | s := return_text_two() |
| 19 | return unsafe { cstring_to_vstring(s) } |
| 20 | } |
| 21 |