Files
swift-mirror/test/PCMacro/Inputs/PlaygroundModuleAndFileIDs.swift
Chris Brough 87e8627f2d [5.1] Upgrade PCMacro/PlaygroundTransform to support module/file IDs
This change PCMacro and PlaygroundTransform to return an a moduleID and
fileID in addition to the source location information. The Frontend has
been changed to run PCMacro and PlaygroundTransform on all input files
instead of the main file only.

The tests have been updated to conform to these changes with an addition
of module and file ID specific tests. The Playgrounds related tests were
adjusted to make a module out of the stub interface files since those
files should not have PCMacro and PlaygroundTransform applied to them.

rdar://problem/50821146
2019-05-28 14:20:59 -07:00

12 lines
465 B
Swift

// test (module-name) -> 1 (module-id)
internal let __builtin_pg_module_test: Int = 1
// test (module-name) -> 1 (module-id)
internal let __builtin_pg_module_test2: Int = 1
// test (module-name), main (file-name), main_ (file-name-punycode) -> 2 (file-id)
internal let __builtin_pg_module_test_pg_file_main_: Int = 2
// test (module-name), main (file-name), main_ (file-name-punycode) -> 2 (file-id)
internal let __builtin_pg_module_test2_pg_file_main_: Int = 2