1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 implied. See the License for the specific language governing 16 permissions and limitations under the License. 17 18 *****************************************************************************/ 19 20// version_macros.cpp -- test for 21// 22// Original Author: John Aynsley, Doulos, Inc. 23// 24// MODIFICATION LOG - modifiers, enter your name, affiliation, date and 25// 26// $Log: version_macros.cpp,v $ 27// Revision 1.4 2011/05/16 17:17:43 acg 28// Andy Goodrich: update test to mask information that changes by SystemC 29// revision. 30// 31// Revision 1.3 2011/05/08 19:18:46 acg 32// Andy Goodrich: remove extraneous + prefixes from git diff. 33// 34 35// Process control method throw_it 36 37#define SC_INCLUDE_DYNAMIC_PROCESSES 38 39#include <systemc> 40 41using namespace sc_core; 42using std::cout; 43using std::endl; 44 45int sc_main(int argc, char* argv[]) 46{ 47 sc_assert( SC_VERSION_MAJOR == sc_version_major ); 48 sc_assert( SC_VERSION_MINOR == sc_version_minor ); 49 sc_assert( SC_VERSION_PATCH == sc_version_patch ); 50 sc_assert( SC_VERSION_ORIGINATOR == sc_version_originator ); 51 sc_assert( SC_VERSION_RELEASE_DATE == sc_version_release_date ); 52 sc_assert( SC_VERSION_PRERELEASE == sc_version_prerelease ); 53 sc_assert( SC_IS_PRERELEASE == sc_is_prerelease ); 54 sc_assert( SC_VERSION == sc_version_string ); 55 sc_assert( sc_release() == sc_version_string ); 56 sc_assert( SC_COPYRIGHT == sc_copyright_string ); 57 sc_assert( sc_copyright() == sc_copyright_string ); 58 59 cout << "IEEE_1666_SYSTEMC = " << IEEE_1666_SYSTEMC << endl; 60 61 //sc_start(); 62 63 cout << endl << "Success" << endl; 64 return 0; 65} 66 67