xref: /llvm-project/clang/test/SemaCXX/ms-iunknown-inline-def.cpp (revision 58bd603109e4e6ca214712ca897d024bed07ef0f)
1 // RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s
2 
3 struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown {
fooIUnknown4   void foo() {}
5 };
6 
7 // expected-error@+1{{interface type cannot inherit from}}
8 __interface HasError : public IUnknown {};
9