1 | // RUN: %clang -### -target amdgcn-amd-amdhsa -x cl -c -emit-llvm %s 2>&1 | FileCheck -check-prefix=DEFAULT %s |
2 | // RUN: %clang -### -target amdgcn-amd-amdhsa -x cl -c -emit-llvm -fvisibility=protected %s 2>&1 | FileCheck -check-prefix=OVERRIDE-PROTECTED %s |
3 | // RUN: %clang -### -target amdgcn-amd-amdhsa -x cl -c -emit-llvm -fvisibility-ms-compat %s 2>&1 | FileCheck -check-prefix=OVERRIDE-MS %s |
4 | |
5 | // DEFAULT-DAG: "-fvisibility" "hidden" |
6 | // DEFAULT-DAG: "-fapply-global-visibility-to-externs" |
7 | |
8 | // OVERRIDE-PROTECTED-NOT: "-fapply-global-visibility-to-externs" |
9 | // OVERRIDE-PROTECTED: "-fvisibility" "protected" |
10 | // OVERRIDE-PROTECTED-NOT: "-fapply-global-visibility-to-externs" |
11 | |
12 | // OVERRIDE-MS-NOT: "-fapply-global-visibility-to-externs" |
13 | // OVERRIDE-MS-DAG: "-fvisibility" "hidden" |
14 | // OVERRIDE-MS-DAG: "-ftype-visibility" "default" |
15 | // OVERRIDE-MS-NOT: "-fapply-global-visibility-to-externs" |
16 | |