Files
swift-mirror/test/Driver/broken_output_file_map.swift
Jordan Rose 704b18990e [Driver] Ignore unknown types in the output file map.
This will make future testing easier: Xcode can add a new type to the map
to support newer compilers without breaking older compilers.

rdar://problem/19212339

Swift SVN r23974
2014-12-17 03:14:50 +00:00

6 lines
465 B
Swift

// RUN: echo "{\"%s\": {\"object\": \"/build/broken_output_file_map.o\", \"completely-bogus-type\": \"\"}}" > %t.json
// RUN: %swiftc_driver -driver-print-output-file-map -target x86_64-apple-macosx10.9 -emit-executable %s %S/Inputs/main.swift %S/Inputs/lib.swift -o /build/basic_output_file_map.out -module-name OutputFileMap -output-file-map %t.json 2>&1 | FileCheck %s
// CHECK: {{.*}}/broken_output_file_map.swift -> object: "/build/broken_output_file_map.o"