Files
Tony Tao 52f2a9445d [Support] Prevent loss of file type flags when creating temporary (#167939)
Non-binary output files from the compiler need the `OF_Text` flag set
for encoding conversion to be performed correctly on z/OS.

---------

Co-authored-by: Tony Tao <tonytao@ca.ibm.com>
2025-11-14 18:19:26 +00:00

10 lines
265 B
C

// Checks encoding of output file
// This is only required for z/OS.
//
// REQUIRES: system-zos, systemz-registered-target
// RUN: %clang_cc1 -triple s390x-ibm-zos -S %s -o %t.s
// RUN: ls -T %t.s | FileCheck %s
// CHECK: t IBM-1047 T=on
void foo() { return; }