summary refs log tree commit diff stats
path: root/tests/errmsgs/tgeneral_excepts.nim
blob: 8f8be797fdb2d9b09a1c536fd8b4460e5a05d297 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
errormsg: "Only one general except clause is allowed after more specific exceptions"
"""

try:
  discard
except:
  discard
except:
  discard
ass="cp">#define sizeudata(u) (sizeof(union Udata)+(u)->len) #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ (sizeof(s)/sizeof(char))-1)) #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) LUAI_FUNC void luaS_resize (lua_State *L, int newsize); LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); #endif