Use standard preprocessor definitions in codegen tests
Open
area:infrastructure
good-first-issue
status:help-wanted
- Dominant language
- C#
- Stars
- 451
- Forks
- 49
- Avg merge
- 13h 59m
- Merged PRs (30d)
- 6
Description
Certain language features — say, `offsetof` — rely on preprocessor for their implementation.
It really does make sense to write tests for these features using the same preprocessor definitions we use in the standard library.
But currently, there's no good way of achieving this: the standard includes are unavailable in the `CodeGenTestBase`-derived tests.
Let's allow the tests to use standard includes (either unblock that in `CodeGenTestBase` or create a new test base class for that), and then enable the tests marked with `TODO[#390]`.
Contributor guide
Assessment
This issue has not been assessed yet.