[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Driver / zos-driver-defaults.c
blob798fa893a1fdb53c8f91099a98ec4c4d830fb61e
1 // RUN: %clang -### --target=s390x-none-zos -fsyntax-only %s 2>&1 | FileCheck --check-prefixes=CHECK-C-MACRO,CHECK-SHORT-ENUMS %s
2 // RUN: %clang -### --target=s390x-none-zos -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-ZOS-INCLUDES %s
3 // RUN: %clang -### --target=s390x-none-zos -fno-short-enums -fsyntax-only %s 2>&1 | FileCheck %s
4 // RUN: %clangxx -### --target=s390x-none-zos -fsyntax-only %s 2>&1 | FileCheck --check-prefixes=CHECK-C-MACRO,CHECK-CXX-MACRO %s
5 // RUN: %clang -### --target=s390x-none-zos -x c++ -fsyntax-only %s 2>&1 | FileCheck --check-prefixes=CHECK-C-MACRO,CHECK-CXX-MACRO %s
7 //CHECK-C-MACRO: -D_UNIX03_WITHDRAWN
8 //CHECK-C-MACRO: -D_OPEN_DEFAULT
10 //CHECK-CXX-MACRO: -D_XOPEN_SOURCE=600
11 //CHECK-USER-CXX-MACRO-NOT: -D_XOPEN_SOURCE=600
12 //CHECK-USER-CXX-MACRO: "-D" "_XOPEN_SOURCE=700"
14 //CHECK-SHORT-ENUMS: -fshort-enums
15 //CHECK-SHORT-ENUMS: -fno-signed-char
17 //CHECK-ZOS-INCLUDES: clang{{.*}} "-cc1" "-triple" "s390x-none-zos"
18 //CHECK-ZOS-INCLUDES-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
19 //CHECK-ZOS-INCLUDES-SAME: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include{{(/|\\\\)}}zos_wrappers"
20 //CHECK-ZOS-INCLUDES-SAME: "-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
22 //CHECK-NOT: -fshort-enums
23 //CHECK: -fno-signed-char