aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/ms-iunknown-outofline-def.cpp
blob: b6e74d0eb6043e730a61d8d3a1c829f2af6f45ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s 

struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown {
  void foo();
};

__interface NoError : public IUnknown {};
void IUnknown::foo() {}
// expected-error@+1{{interface type cannot inherit from}}
__interface HasError : public IUnknown {};