view clang/test/Driver/ps4cpu.c @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 0572611fdcc8
children
line wrap: on
line source

// REQUIRES: x86-registered-target

// Test that the driver always emits -fno-use-init-array on the PS4 target
// since its ABI does not support the .init_array section.

// RUN: %clang -c %s -target x86_64-scei-ps4 -### 2>&1                      \
// RUN:   | FileCheck %s
// RUN: %clang -c %s -target x86_64-scei-ps4 -fno-use-init-array -### 2>&1  \
// RUN:   | FileCheck %s
// RUN: %clang -c %s -target x86_64-scei-ps4 -fuse-init-array -### 2>&1     \
// RUN:   | FileCheck %s --check-prefix=CHECK-ERROR

// CHECK: "-fno-use-init-array"
// CHECK-NOT: "-fuse-init-array"

// CHECK-ERROR: unsupported option '-fuse-init-array' for target 'x86_64-scei-ps4'