| 1 |
// RUN: c-index-test -index-file %s -target i686-pc-linux \ |
| 2 |
// RUN: | FileCheck %s -check-prefix CHECK -check-prefix CHECK-LINUX |
| 3 |
// RUN: c-index-test -index-file -Wno-unsupported-visibility %s -target i386-darwin \ |
| 4 |
// RUN: | FileCheck %s -check-prefix CHECK -check-prefix CHECK-DARWIN |
| 5 |
|
| 6 |
void __attribute__ (( visibility("default") )) default_visibility(); |
| 7 |
// CHECK: <attribute>: attribute(visibility)=default |
| 8 |
void __attribute__ (( visibility("hidden") )) hidden_visibility(); |
| 9 |
// CHECK: <attribute>: attribute(visibility)=hidden |
| 10 |
void __attribute__ (( visibility("protected") )) protected_visibility(); |
| 11 |
// CHECK-LINUX: <attribute>: attribute(visibility)=protected |
| 12 |
// CHECK-DARWIN: <attribute>: attribute(visibility)=default |
| 13 |
|