blob: 0cff1f830e5f4bc0a75650b5afc0106ec9ffba1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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" )
}
|