trick/test/SIM_test_icg_file_skipped/S_define
Scott Fennell 9589c1062c
in ICG: Add FileSkipped preprocessor callback to FindTrickICG (#1125)
* #608 add implementation of FileSkipped callback to FindTrickICG to add include chains for headers that have already been preprocessed

* #608 add test SIM for FindTrickICG offsets SIM_test_icg_file_skipped
2021-04-19 19:34:17 -05:00

35 lines
1.2 KiB
Plaintext

/************************TRICK HEADER*************************
PURPOSE: (Test that ICG generates the correct offsets for compat15 headers even
When they are skipped by header guard optimization. This is implemented in
ICG's FindTrickICG class)
LIBRARY DEPENDENCIES:
*************************************************************/
#include "sim_objects/default_trick_sys.sm"
##include "Bar.hh"
##include "Baz.hh"
class TestFileSkippedSimObject : public Trick::SimObject {
public:
Bar bar;
Baz baz;
TestFileSkippedSimObject() {
("initialization") trick_ret = bar.test_bar_member_o_correct_offset();
("initialization") trick_ret = baz.test_baz_member_m_correct_offset();
("default_data") trick_ret = bar.test_bar_member_o_correct_offset();
("default_data") trick_ret = baz.test_baz_member_m_correct_offset();
(0.25, "scheduled") trick_ret = bar.test_bar_member_o_correct_offset();
(0.25, "scheduled") trick_ret = baz.test_baz_member_m_correct_offset();
("shutdown") trick_ret = bar.test_bar_member_o_correct_offset();
("shutdown") trick_ret = baz.test_baz_member_m_correct_offset();
}
};
TestFileSkippedSimObject testfsSimObject;