llvm-project/clang/test/SemaCXX/ms-iunknown-inline-def.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
260 B
C++
Raw Normal View History

// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s
struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown {
void foo() {}
};
// expected-error@+1{{interface type cannot inherit from}}
__interface HasError : public IUnknown {};