summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/genex_test.cpp
blob: 4412569ce1a3f60e975aab574a64f85e985d37dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

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

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

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

#endif

#if !HAVE_NULLPTR
#error "Expect nullptr feature"
#else

const char* getString()
{
  return nullptr;
}

#endif

int main()
{

}