1 // RUN: %clang_cc1 -O2 -fvisibility=hidden -std=c++11 -emit-llvm -o - -triple x86_64-apple-darwin10 %s | FileCheck %s
3 // Ensure that available_externally functions eliminated at -O2 are now
4 // declarations, and are not emitted as hidden with -fvisibility=hidden,
5 // but rather with default visibility.
14 virtual bool Send(Message
* msg
) = 0;
20 // CHECK: declare noundef zeroext i1 @_ZThn16_N17SyncMessageFilter4SendEP7Message
21 class SyncMessageFilter
: public Filter
, public Sender
{
23 bool Send(Message
* message
) override
;
26 class TestSyncMessageFilter
: public SyncMessageFilter
{
30 TestSyncMessageFilter
*f
= new TestSyncMessageFilter
;