mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -04:00

__interface objects in MSVC are permitted to inherit from __interface types, and interface-like types. Additionally, there are two default interface-like types (IUnknown and IDispatch) that all interface-like types must inherit from. Differential Revision: https://reviews.llvm.org/D37308 llvm-svn: 313364
9 lines
260 B
C++
9 lines
260 B
C++
// 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 {};
|