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