Files
swift-mirror/test/IRGen/autolink-psei.swift
Jordan Rose 2b7ab7d8d1 [test] Update autolinking tests to match LLVM.
The test part of 90ca8f119a, which went in early to unblock the build.
2017-07-25 14:57:27 -07:00

12 lines
494 B
Swift

// RUN: %empty-directory(%t)
// RUN: %swift -target x86_64-scei-ps4 -parse-as-library -parse-stdlib -emit-module-path %t/module.swiftmodule -module-name module -module-link-name module %s
// RUN: %swift -target x86_64-scei-ps4 -parse-as-library -parse-stdlib -module-name autolink -I %t -D MAIN_MODULE -emit-ir -o - %s | %FileCheck %s -check-prefix CHECK-IR
#if MAIN_MODULE
import module
#endif
// CHECK-IR: !llvm.linker.options = !{[[LIST:![0-9]+]]}
// CHECK-IR: [[LIST]] = !{!"\01module"}