trick/test/SIM_test_icg_file_skipped/models/Baz.hh
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

23 lines
428 B
C++

// @trick_parse{everything}
#include "Foo.hh"
#include "trick/memorymanager_c_intf.h"
class Baz {
public:
Foo foo;
int m;
Baz(): m(42) {}
int test_baz_member_m_correct_offset() {
char ref_name[] = "testfsSimObject.baz.m";
REF2* ref = ref_attributes(ref_name);
if(*((int*)ref->address) == m) {
return 0;
}
else {
return 1;
}
}
};