summaryrefslogtreecommitdiffstats
path: root/test/CXX/class.derived/p8-0x.cpp
blob: 6a667f73ec3fdd48fe4c3415a7767a8e114973dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %clang_cc1 %s -fsyntax-only -verify -std=c++0x

namespace Test1 {

struct A {
  virtual void f(); // expected-note {{overridden virtual function is here}}
};

struct B explicit : A {
  virtual void f(); // expected-error {{overrides function without being marked 'override'}}
};

struct C {
  virtual ~C();
};

struct D explicit : C {
  virtual ~D();
};

}

OpenPOWER on IntegriCloud