1 // REQUIRES: x86-registered-target 2 3 // Test that the driver always emits -fno-use-init-array on the PS4 target 4 // since its ABI does not support the .init_array section. 5 6 // RUN: %clang -c %s -target x86_64-scei-ps4 -### 2>&1 \ 7 // RUN: | FileCheck %s 8 // RUN: %clang -c %s -target x86_64-scei-ps4 -fno-use-init-array -### 2>&1 \ 9 // RUN: | FileCheck %s 10 // RUN: %clang -c %s -target x86_64-scei-ps4 -fuse-init-array -### 2>&1 \ 11 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR 12 13 // CHECK: "-fno-use-init-array" 14 // CHECK-NOT: "-fuse-init-array" 15 16 // CHECK-ERROR: unsupported option '-fuse-init-array' for target 'x86_64-scei-ps4' 17 18