brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 9be5fde Raw
20 lines · plain
1// RUN: %clang -### -target amdgcn-amd-amdhsa -x cl -c -emit-llvm -nogpulib %s 2>&1 | FileCheck -check-prefix=DEFAULT %s2// RUN: %clang -### -target amdgcn-amd-amdhsa -x cl -c -emit-llvm -fvisibility=protected -nogpulib %s 2>&1 | FileCheck -check-prefix=OVERRIDE-PROTECTED  %s3// RUN: %clang -### -target amdgcn-amd-amdhsa -x cl -c -emit-llvm -fvisibility-ms-compat -nogpulib %s 2>&1 | FileCheck -check-prefix=OVERRIDE-MS  %s4 5// RUN: %clang -### -target amdgcn-mesa-mesa3d -x cl -c -emit-llvm %s 2>&1 | FileCheck -check-prefix=DEFAULT %s6// RUN: %clang -### -target amdgcn-mesa-mesa3d -x cl -c -emit-llvm -fvisibility=protected  %s 2>&1 | FileCheck -check-prefix=OVERRIDE-PROTECTED  %s7// RUN: %clang -### -target amdgcn-mesa-mesa3d -x cl -c -emit-llvm -fvisibility-ms-compat  %s 2>&1 | FileCheck -check-prefix=OVERRIDE-MS  %s8 9// DEFAULT-DAG: "-fvisibility=hidden"10// DEFAULT-DAG: "-fapply-global-visibility-to-externs"11 12// OVERRIDE-PROTECTED-NOT: "-fapply-global-visibility-to-externs"13// OVERRIDE-PROTECTED: "-fvisibility=protected"14// OVERRIDE-PROTECTED-NOT: "-fapply-global-visibility-to-externs"15 16// OVERRIDE-MS-NOT: "-fapply-global-visibility-to-externs"17// OVERRIDE-MS-DAG: "-fvisibility=hidden"18// OVERRIDE-MS-DAG: "-ftype-visibility=default"19// OVERRIDE-MS-NOT: "-fapply-global-visibility-to-externs"20