Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGen/push-hidden-visibility-subclass.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple x86_64-linux-unknown -emit-llvm %s -o - | FileCheck %s #pragma GCC visibility push(hidden) struct Base { virtual ~Base() = default; virtual void* Alloc() = 0; }; class Child : public Base { public: Child() = default; void* Alloc(); }; void test() { Child x; } // CHECK: @_ZTV5Child = external hidden unnamed_addr constant