mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

This patch adds an API for querying the visibility of the entity referred to by a cursor. Patch by Michael Wu <mwu@mozilla.com>. llvm-svn: 271292
8 lines
272 B
C
8 lines
272 B
C
// RUN: c-index-test -test-print-visibility %s | FileCheck %s
|
|
|
|
__attribute__ ((visibility ("default"))) void foo1();
|
|
__attribute__ ((visibility ("hidden"))) void foo2();
|
|
|
|
// CHECK: FunctionDecl=foo1:3:47visibility=Default
|
|
// CHECK: FunctionDecl=foo2:4:46visibility=Hidden
|