blob: c1b95ccbdf09c03d6a02acbf884b03eb47801b03 [file] [log] [blame]
Anders Carlssond7ba27d2009-05-14 01:09:04 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3namespace T1 {
4
5class A {
6 virtual int f(); // expected-note{{overridden virtual function is here}}
7};
8
9class B : A {
10 virtual void f(); // expected-error{{virtual function 'f' has a different return type ('void') than the function it overrides (which has return type 'int')}}
11};
12
13}