# Tests that field names overlapping with built-in identifiers (e.g. "html",
# "list") are not reordered to the front of the struct during evaluation.
# Issue: `cue eval` placed such fields before others, violating declaration
# order.
# https://cuelang.org/issue/349
-- in.cue --
ex: {
	@test(eq, {
		aaa:  "aaa"
		list: "list"
		zzz:  "zzz"
		AAA:  "AAA"
		html: "html"
		HTML: "html"
		ZZZ:  "ZZZ"
		Html: "html"
	})
	"aaa":  "aaa"
	"list": "list"
	"zzz":  "zzz"
	"AAA":  "AAA"
	"html": "html"
	"HTML": "html"
	"ZZZ":  "ZZZ"
	"Html": "html"
}
-- out/eval/stats --
Leaks:  0
Freed:  10
Reused: 7
Allocs: 3
Retain: 0

Unifications: 10
Conjuncts:    10
Disjuncts:    10
