summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/genex_test.cpp
blob: ca38883564d3abc9406222a9f4ca72b8c722cd66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#if !HAVE_OVERRIDE_CONTROL
#error "Expect override control feature"
#else

struct A
{
  virtual int getA() { return 7; }
};

struct B final : A
{
  int getA() override { return 42; }
};

#endif

int main()
{

}