xref: /minix3/external/bsd/llvm/dist/clang/test/SemaTemplate/crash-10438657.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: not %clang_cc1 -fsyntax-only %s 2> %t
2 // RUN: FileCheck %s < %t
3 // CHECK: 10 errors
4 template<typename _CharT>
5 class collate : public locale::facet {
6 
7 protected:
~collate()8 virtual ~collate() {}
9   class wxObject;
10   class __attribute__ ((visibility("default"))) wxGDIRefData
11     : public wxObjectRefData {};
12   class __attribute__ ((visibility("default"))) wxGDIObject : public wxObject { \
13       public:
IsOk() const14       virtual bool IsOk() const {
15         return m_refData && static_cast<wxGDIRefData *>(m_refData)->IsOk();
16