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