Erich Keane | 58bd603 | 2017-09-15 16:03:35 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s |
2 | |||||
3 | struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown { | ||||
4 | void foo(); | ||||
5 | }; | ||||
6 | |||||
7 | __interface NoError : public IUnknown {}; | ||||
8 | void IUnknown::foo() {} | ||||
9 | // expected-error@+1{{interface type cannot inherit from}} | ||||
10 | __interface HasError : public IUnknown {}; |