mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code goes into its own sub-tree under 'tools' but tests go under 'test', so that running 'check-swift' will also run all the SourceKit tests. SourceKit is disabled on non-darwin platforms.
6 lines
271 B
Swift
6 lines
271 B
Swift
// RUN: %sourcekitd-test -req=structure %s -- -module-name StructureTest %s | %sed_clean > %t.response
|
|
// RUN: diff -u %s.response %t.response
|
|
|
|
let color: S = [#Color(colorLiteralRed: 1, green: 0, blue: 0, alpha: 1)#]
|
|
let image: I? = [#Image(imageLiteral: "hello.png")#]
|