Files
swift-mirror/test/SILGen/other-entry-point-function-name.swift
2022-07-28 13:59:44 -07:00

13 lines
390 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-clang -c --language=c %S/Inputs/forward-to-foobar.c -o %t/forward.o
// RUN: %target-build-swift %s %t/forward.o -Xfrontend -entry-point-function-name -Xfrontend foobar -o %t/main
// RUN: %target-codesign %t/main
// RUN: %target-run %t/main | %FileCheck %s
// REQUIRES: executable_test
// CHECK: howdy from foobar
print("howdy from foobar")