f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
34 lines
1.3 KiB
C++
34 lines
1.3 KiB
C++
// RUN: %clang -### -S -fvisibility=hidden -fvisibility=default %s 2> %t.log
|
|
// RUN: FileCheck -check-prefix=CHECK-1 %s < %t.log
|
|
// CHECK-NOT: "-ftype-visibility"
|
|
// CHECK-1: "-fvisibility" "default"
|
|
// CHECK-NOT: "-ftype-visibility"
|
|
|
|
// RUN: %clang -### -S -fvisibility=default -fvisibility=hidden %s 2> %t.log
|
|
// RUN: FileCheck -check-prefix=CHECK-2 %s < %t.log
|
|
// CHECK-NOT: "-ftype-visibility"
|
|
// CHECK-2: "-fvisibility" "hidden"
|
|
// CHECK-NOT: "-ftype-visibility"
|
|
|
|
// RUN: %clang -### -S -fvisibility-ms-compat -fvisibility=hidden %s 2> %t.log
|
|
// RUN: FileCheck -check-prefix=CHECK-3 %s < %t.log
|
|
// CHECK-NOT: "-ftype-visibility"
|
|
// CHECK-3: "-fvisibility" "hidden"
|
|
// CHECK-NOT: "-ftype-visibility"
|
|
|
|
// RUN: %clang -### -S -fvisibility-ms-compat -fvisibility=default %s 2> %t.log
|
|
// RUN: FileCheck -check-prefix=CHECK-4 %s < %t.log
|
|
// CHECK-NOT: "-ftype-visibility"
|
|
// CHECK-4: "-fvisibility" "default"
|
|
// CHECK-NOT: "-ftype-visibility"
|
|
|
|
// RUN: %clang -### -S -fvisibility=hidden -fvisibility-ms-compat %s 2> %t.log
|
|
// RUN: FileCheck -check-prefix=CHECK-5 %s < %t.log
|
|
// CHECK-5: "-fvisibility" "hidden"
|
|
// CHECK-5: "-ftype-visibility" "default"
|
|
|
|
// RUN: %clang -### -S -fvisibility=default -fvisibility-ms-compat %s 2> %t.log
|
|
// RUN: FileCheck -check-prefix=CHECK-6 %s < %t.log
|
|
// CHECK-6: "-fvisibility" "hidden"
|
|
// CHECK-6: "-ftype-visibility" "default"
|
|
|