constructor_throw.cpp (12855:588919e0e4aa) constructor_throw.cpp (12876:e332bbd21d47)
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

--- 58 unchanged lines hidden (view full) ---

67// sc_module_name pointer lying around.
68
69#include "systemc.h"
70
71SC_MODULE(X)
72{
73 SC_CTOR(X)
74 {
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

--- 58 unchanged lines hidden (view full) ---

67// sc_module_name pointer lying around.
68
69#include "systemc.h"
70
71SC_MODULE(X)
72{
73 SC_CTOR(X)
74 {
75 SC_REPORT_ERROR(SC_ID_SET_TIME_RESOLUTION_,"");
75 SC_REPORT_ERROR("set time resolution failed","");
76 }
77};
78
79int sc_main(int argc, char* argv[])
80{
81 sc_module* x_p = new X("x");
82
83 cout << "Program completed" << endl;
84 return 0;
85}
86
76 }
77};
78
79int sc_main(int argc, char* argv[])
80{
81 sc_module* x_p = new X("x");
82
83 cout << "Program completed" << endl;
84 return 0;
85}
86