Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGen/aix-visibility-inlines-hidden.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple powerpc-unknown-aix -mcmodel=large -emit-llvm -o - -x c++ %s | \ // RUN: FileCheck -check-prefix=NOVISIBILITY-IR %s // RUN: %clang_cc1 -triple powerpc-unknown-aix -mcmodel=large \ // RUN: -fvisibility-inlines-hidden -emit-llvm -o - -x c++ %s | \ // RUN: FileCheck -check-prefix=NOVISIBILITY-IR %s // RUN: %clang_cc1 -triple powerpc-unknown-aix -mcmodel=large -fvisibility-inlines-hidden \ // RUN: -fvisibility default -emit-llvm -o - -x c++ %s | \ // RUN: FileCheck -check-prefix=VISIBILITY-IR %s // RUN: %clang_cc1 -triple powerpc-unknown-aix -mcmodel=large -mignore-xcoff-visibility -emit-llvm \ // RUN: -fvisibility-inlines-hidden -fvisibility default -o - -x c++ %s | \ // RUN: FileCheck -check-prefix=NOVISIBILITY-IR %s int x = 66; __attribute__((__noinline__)) inline void f() { x = 55; } #pragma GCC visibility push(hidden) __attribute__((__noinline__)) inline void foo() { x = 55; } #pragma GCC visibility pop int bar() { f(); foo(); return x; } // VISIBILITY-IR: define linkonce_odr hidden void @_Z1fv() // NOVISIBILITY-IR: define linkonce_odr void @_Z1fv() // VISIBILITY-IR: define linkonce_odr hidden void @_Z3foov() // NOVISIBILITY-IR: define linkonce_odr void @_Z3foov()