1 // RUN: %clang_cc1 -fsyntax-only -verify %s
6 virtual BaseReturn
Foo() = 0; // expected-note{{overridden virtual function is here}}
9 struct Derived
: Base
{
10 X
Foo(); // expected-error{{virtual function 'Foo' has a different return type ('X') than the function it overrides (which has return type 'BaseReturn')}}