llvm-project/clang/test/CodeGen/hidden-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

5 lines
156 B
C

// RUN: %clang_cc1 %s -fvisibility default -emit-llvm -o - | FileCheck %s
// CHECK: hidden global
int X __attribute__ ((__visibility__ ("hidden"))) = 123;