File: compiling_tests.cpp

package info (click to toggle)
trompeloeil-cpp 49-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,640 kB
  • sloc: cpp: 20,576; sh: 126; makefile: 5
file content (57 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * Trompeloeil C++ mocking framework
 *
 * Copyright Björn Fahller 2014-2018
 * Copyright (C) 2017 Andrew Paxie
 *
 *  Use, modification and distribution is subject to the
 *  Boost Software License, Version 1.0. (See accompanying
 *  file LICENSE_1_0.txt or copy at
 *  http://www.boost.org/LICENSE_1_0.txt)
 *
 * Project home: https://github.com/rollbear/trompeloeil
 */

#define TROMPELOEIL_SANITY_CHECKS

#if defined(_WIN32)
#include <Unknwn.h>
#undef interface
#endif

#include <trompeloeil.hpp>
#if not defined(CATCH2_VERSION) || CATCH2_VERSION == 2
#ifndef CATCH2_MAIN
#define CATCH_CONFIG_MAIN
#endif
#include <catch2/catch.hpp>
#else
#if CATCH2_VERSION == 3
#include <catch2/catch_test_macros.hpp>
#endif
#endif

#include <algorithm>
#include <cstddef>
#include <memory>
#include <regex>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

#include "compiling_tests.hpp"
#include "test_reporter.hpp"

std::vector<report> reports;
std::vector<std::string> okReports;

int
intfunc(int i)
{
  return i;
}

int global_n = 0;

char carr[4] = "foo";