[!windows] cp reuse.json 'star/*.json'
[!windows] exec cue export --out cue
[!windows] cmp stdout out/export-unix

[windows] ! exec cue export --out cue
[windows] cmp stderr out/stderr-windows

-- cue.mod/module.cue --
module: "cue.test"
language: version: "v0.11.0"

-- test.cue --
@extern(embed)

package foo

// Unix OSes can have a file containing a star character, and we can match it.
// Windows can still use these file paths and glob patterns, but they can't match
// a file containing a star character, as such filenames are not allowed on Windows.

globStar:       _ @embed(glob="star/*.json")
globEscapeStar: _ @embed(glob="star/\\**", type=json)
-- reuse.json --
{"x": "to be reused for more names"}
-- star/simple.json --
{"x": "does not contain a star character"}
-- out/export-unix --
globStar: {
	"star/*.json": x:      "to be reused for more names"
	"star/simple.json": x: "does not contain a star character"
}
globEscapeStar: "star/*.json": x: "to be reused for more names"
-- out/stderr-windows --
@embed: no matches for glob pattern "star/\\**":
    ./test.cue:10:19
