brintos

brintos / llvm-project-archived public Read only

0
0
Text · 991 B · 294283d Raw
21 lines · c
1// Test that the driver always emits -fno-use-init-array on the PS4/PS5 targets2// since their ABI does not support the .init_array section.3 4// RUN: %clang -c %s -target x86_64-scei-ps4 -### 2>&1                      \5// RUN:   | FileCheck %s6// RUN: %clang -c %s -target x86_64-sie-ps5 -### 2>&1                       \7// RUN:   | FileCheck %s8// RUN: %clang -c %s -target x86_64-scei-ps4 -fno-use-init-array -### 2>&1  \9// RUN:   | FileCheck %s10// RUN: %clang -c %s -target x86_64-sie-ps5 -fno-use-init-array -### 2>&1   \11// RUN:   | FileCheck %s12// RUN: not %clang -c %s --target=x86_64-scei-ps4 -fuse-init-array -### 2>&1     \13// RUN:   | FileCheck %s --check-prefix=CHECK-ERROR14// RUN: not %clang -c %s --target=x86_64-sie-ps5 -fuse-init-array -### 2>&1      \15// RUN:   | FileCheck %s --check-prefix=CHECK-ERROR16 17// CHECK: "-fno-use-init-array"18// CHECK-NOT: "-fuse-init-array"19 20// CHECK-ERROR: unsupported option '-fuse-init-array' for target 'x86_64-{{(scei|sie)}}-ps{{[45]}}'21