1 // RUN: %clang -### -S -fvisibility=hidden -fvisibility=default %s 2> %t.log
2 // RUN: FileCheck -check-prefix=CHECK-1 %s < %t.log
3 // CHECK-1-NOT: "-ftype-visibility"
4 // CHECK-1: "-fvisibility" "default"
5 // CHECK-1-NOT: "-ftype-visibility"
6 
7 // RUN: %clang -### -S -fvisibility=default -fvisibility=hidden %s 2> %t.log
8 // RUN: FileCheck -check-prefix=CHECK-2 %s < %t.log
9 // CHECK-2-NOT: "-ftype-visibility"
10 // CHECK-2: "-fvisibility" "hidden"
11 // CHECK-2-NOT: "-ftype-visibility"
12 
13 // RUN: %clang -### -S -fvisibility-ms-compat -fvisibility=hidden %s 2> %t.log
14 // RUN: FileCheck -check-prefix=CHECK-3 %s < %t.log
15 // CHECK-3-NOT: "-ftype-visibility"
16 // CHECK-3: "-fvisibility" "hidden"
17 // CHECK-3-NOT: "-ftype-visibility"
18 
19 // RUN: %clang -### -S -fvisibility-ms-compat -fvisibility=default %s 2> %t.log
20 // RUN: FileCheck -check-prefix=CHECK-4 %s < %t.log
21 // CHECK-4-NOT: "-ftype-visibility"
22 // CHECK-4: "-fvisibility" "default"
23 // CHECK-4-NOT: "-ftype-visibility"
24 
25 // RUN: %clang -### -S -fvisibility=hidden -fvisibility-ms-compat %s 2> %t.log
26 // RUN: FileCheck -check-prefix=CHECK-5 %s < %t.log
27 // CHECK-5: "-fvisibility" "hidden"
28 // CHECK-5: "-ftype-visibility" "default"
29 
30 // RUN: %clang -### -S -fvisibility=default -fvisibility-ms-compat %s 2> %t.log
31 // RUN: FileCheck -check-prefix=CHECK-6 %s < %t.log
32 // CHECK-6: "-fvisibility" "hidden"
33 // CHECK-6: "-ftype-visibility" "default"
34 
35