llvm-project/clang/test/Index/symbol-visibility.c
diggerlin d1f1bff81b [AIX][XCOFF] Fixed the test case which failed at aix OS because enable -mignore-xcoff-visibility by default.
Summary:

because we enable -mignore-xcoff-visibility by default when there is no -fvisibility option in the clang in AIX OS
it will cause some test case fail at aix os. in order to let the -mignore-xcoff-visibility to be disable, we need to add the -fvisibility=default for those test case.

Reviewers: hubert.reinterpretcast daltenty
Differential Revision: https://reviews.llvm.org/D98660
2021-03-15 17:33:02 -04:00

8 lines
294 B
C

// RUN: c-index-test -test-print-visibility -fvisibility=default %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