xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/override-in-system-header.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -isystem %S/Inputs %s -verify
2*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
3*0a6a1f1dSLionel Sambuc // rdar://18295240
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc #include <override-system-header.h>
6*0a6a1f1dSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc struct A
8*0a6a1f1dSLionel Sambuc {
9*0a6a1f1dSLionel Sambuc   virtual void x();
10*0a6a1f1dSLionel Sambuc   END_COM_MAP;
11*0a6a1f1dSLionel Sambuc   IFACEMETHOD(Initialize)();
12*0a6a1f1dSLionel Sambuc };
13*0a6a1f1dSLionel Sambuc 
14*0a6a1f1dSLionel Sambuc struct B : A
15*0a6a1f1dSLionel Sambuc {
16*0a6a1f1dSLionel Sambuc   virtual void x() override;
17*0a6a1f1dSLionel Sambuc   END_COM_MAP;
18*0a6a1f1dSLionel Sambuc   IFACEMETHOD(Initialize)();
19*0a6a1f1dSLionel Sambuc };
20