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 58 59 60
|
/*
* FCML - Free Code Manipulation Library.
* Copyright (C) 2010-2020 Slawomir Wojtasiak
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* Test suite initialization. */
#include "dialect_t.hpp"
#include <fcml_common.hpp>
#include <fcml_intel_dialect.hpp>
using namespace fcml;
class DialectExtractor: public DialectAware {
};
fcml_bool fcml_tf_cpp_dialect_suite_init(void) {
return FCML_TRUE;
}
fcml_bool fcml_tf_cpp_dialect_suite_cleanup(void) {
return FCML_TRUE;
}
void fcml_tf_cpp_init_intel(void) {
IntelDialect intel;
DialectExtractor extractor;
STF_ASSERT_PTR_NOT_NULL( extractor.extractDialect( intel ) );
IntelDialect *intelPTR = new IntelDialect(FCML_INTEL_DIALECT_CF_DEFAULT);
STF_ASSERT_PTR_NOT_NULL( extractor.extractDialect( *intelPTR ) );
delete intelPTR;
}
void fcml_tf_cpp_init_gas(void) {
}
fcml_stf_test_case fcml_ti_cpp_dialect[] = {
{ "fcml_tf_cpp_init_intel", fcml_tf_cpp_init_intel },
{ "fcml_tf_cpp_init_gas", fcml_tf_cpp_init_gas },
FCML_STF_NULL_TEST
};
fcml_stf_test_suite fcml_si_cpp_dialect = {
"suite-fcml-cpp-dialect", fcml_tf_cpp_dialect_suite_init, fcml_tf_cpp_dialect_suite_cleanup, fcml_ti_cpp_dialect
};
|