diff options
Diffstat (limited to 'testes')
| -rw-r--r-- | testes/gc.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testes/gc.lua b/testes/gc.lua index ca8aa1bc..5d2b3085 100644 --- a/testes/gc.lua +++ b/testes/gc.lua | |||
| @@ -288,6 +288,11 @@ x,y,z=nil | |||
| 288 | collectgarbage() | 288 | collectgarbage() |
| 289 | assert(next(a) == string.rep('$', 11)) | 289 | assert(next(a) == string.rep('$', 11)) |
| 290 | 290 | ||
| 291 | do -- invalid mode | ||
| 292 | local a = setmetatable({}, {__mode = 34}) | ||
| 293 | collectgarbage() | ||
| 294 | end | ||
| 295 | |||
| 291 | 296 | ||
| 292 | -- 'bug' in 5.1 | 297 | -- 'bug' in 5.1 |
| 293 | a = {} | 298 | a = {} |
