swift tests: Port to Swift 3

Should remain compatible with Swift 2.2
pull/853/head
Nirbheek Chauhan 9 years ago committed by Jussi Pakkanen
parent 62ec92c8b0
commit efc986ee93
  1. 2
      test cases/swift/2 multifile/main.swift
  2. 4
      test cases/swift/4 generate/gen/main.swift

@ -1 +1 @@
printSomething("String from main")
printSomething(text:"String from main")

@ -4,7 +4,11 @@
import Glibc
#endif
#if swift(>=3.0)
let fname = CommandLine.arguments[1]
#else
let fname = Process.arguments[1]
#endif
let code = "public func getGenerated() -> Int {\n return 42\n}\n"
let f = fopen(fname, "w")

Loading…
Cancel
Save