summaryrefslogtreecommitdiff
path: root/Tests/Module/WriteCompilerDetectionHeader/main_bare.cpp
blob: 6954318a2a93bf1337f1bde75044296c39cdc111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "test_compiler_detection_bare_features.h"

class base
{
public:
  virtual ~base() {}
  virtual void baz() = 0;
};

class foo final
{
public:
  virtual ~foo() {}
  char* bar;
  void baz() noexcept override { bar = nullptr; }
};

int main()
{
  foo f;

  return 0;
}