//ww:run-exit 42 // migrated from test/wcc/787_xmod_variant_match.c: bare arm + bound `case let o: pkg.b` + default over an imported 3-variant union. package main; import pkg; fn classify(e: pkg.u2) i32 = { match (e) { case pkg.a => return 1; case let o: pkg.b => return 2; case => return 9; }; }; export fn main() i32 = { if (classify(pkg.mka()) != 1) { return 11; }; if (classify(pkg.mkb()) != 2) { return 12; }; if (classify(pkg.mkc()) != 9) { return 13; }; return 42; };