Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constraints, rendered as static_asserts are not tested properly #46

Open
steve-downey opened this issue Jul 18, 2024 · 0 comments
Open
Assignees

Comments

@steve-downey
Copy link
Member

Need to add tests that fail to compile.
q.v.
https://ibob.bg/blog/2022/10/04/testing-build-failure-with-cmake/
https://stackoverflow.com/questions/30155619/expected-build-failure-tests-in-cmake/50665823#50665823
https://gist.github.com/tim-welch/00e07dc57864de36739945156e4049e2
https://stackoverflow.com/questions/24692820/how-to-test-the-static-assert-in-my-library-with-cmake

Some of the docs linked mention working around old cmake issues, which we should not do.

The approach in ibob.bg looks somewhat compatible with how lit is working, in that it's confirming the reason for failing to compile.

@steve-downey steve-downey self-assigned this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant