blob: fc3818985b42272cbb312af949de4ec14bb0a4b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
defineTest(doExport) {
EXPORTED += $$1
export(EXPORTED)
}
defineTest(callDoExport) {
doExport(bar)
doExport(baz)
EXPORTED = oink
!isEqual(EXPORTED, "oink") {
message( "FAILED: function-scope exports [$$EXPORTED] != oink" )
}
}
doExport(foo)
callDoExport()
!isEqual(EXPORTED, "foo bar baz") {
message( "FAILED: global-scope exports [$$EXPORTED] != foo bar baz" )
}
|