trompeloeil

FORK: Header only C++14 mocking framework
git clone https://git.neptards.moe/u3shit/trompeloeil.git
Log | Files | Refs | README

compiling_tests.cpp (817B)


      1 /*
      2  * Trompeloeil C++ mocking framework
      3  *
      4  * Copyright Björn Fahller 2014-2018
      5  * Copyright (C) 2017 Andrew Paxie
      6  *
      7  *  Use, modification and distribution is subject to the
      8  *  Boost Software License, Version 1.0. (See accompanying
      9  *  file LICENSE_1_0.txt or copy at
     10  *  http://www.boost.org/LICENSE_1_0.txt)
     11  *
     12  * Project home: https://github.com/rollbear/trompeloeil
     13  */
     14 
     15 #define TROMPELOEIL_SANITY_CHECKS
     16 
     17 #include <trompeloeil.hpp>
     18 #define CATCH_CONFIG_MAIN
     19 #include <catch.hpp>
     20 
     21 #include <algorithm>
     22 #include <cstddef>
     23 #include <memory>
     24 #include <regex>
     25 #include <string>
     26 #include <type_traits>
     27 #include <utility>
     28 #include <vector>
     29 
     30 #include "compiling_tests.hpp"
     31 
     32 std::vector<report> reports;
     33 std::vector<std::string> okReports;
     34 
     35 int
     36 intfunc(int i)
     37 {
     38   return i;
     39 }
     40 
     41 int global_n = 0;
     42 
     43 char carr[4] = "foo";