brintos

brintos / llvm-project-archived public Read only

0
0
Text · 511 B · 2ee64bd Raw
16 lines · cpp
1// RUN: not %clang_cc1 -fsyntax-only %s 2> %t2// RUN: FileCheck %s < %t3// CHECK: 10 errors4template<typename _CharT>5class collate : public locale::facet {6 7protected:8virtual ~collate() {}9  class wxObject;10  class __attribute__ ((visibility("default"))) wxGDIRefData 11    : public wxObjectRefData {};12  class __attribute__ ((visibility("default"))) wxGDIObject : public wxObject { \13      public:14      virtual bool IsOk() const {15        return m_refData && static_cast<wxGDIRefData *>(m_refData)->IsOk(); 16