brintos

brintos / llvm-project-archived public Read only

0
0
Text · 324 B · b6e74d0 Raw
11 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s 2 3struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown {4  void foo();5};6 7__interface NoError : public IUnknown {};8void IUnknown::foo() {}9// expected-error@+1{{interface type cannot inherit from}}10__interface HasError : public IUnknown {}; 11