mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
9589c1062c
* #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
35 lines
1.2 KiB
Plaintext
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;
|
|
|
|
|