diff options
Diffstat (limited to 'tests/hold/reject/pointer.zc')
| -rw-r--r-- | tests/hold/reject/pointer.zc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/hold/reject/pointer.zc b/tests/hold/reject/pointer.zc new file mode 100644 index 0000000..6306a62 --- /dev/null +++ b/tests/hold/reject/pointer.zc @@ -0,0 +1,5 @@ +// error: name: is shared, so it holds numbers +namespace; +include rt; +hold { shared char* name = "x"; fn a() { return 0; } } +fn main() { return a(); } |
