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

Tests covering ANSI+ C Standard Compatibility #1291

Open
andrew-johnson-4 opened this issue Feb 24, 2025 · 0 comments
Open

Tests covering ANSI+ C Standard Compatibility #1291

andrew-johnson-4 opened this issue Feb 24, 2025 · 0 comments
Assignees
Labels
C Frontend good first issue Good for newcomers help wanted Extra attention is needed

Comments

@andrew-johnson-4
Copy link
Owner

andrew-johnson-4 commented Feb 24, 2025

In the tests/c/*.c directory, these files are used to test C compatibility. These are just normal C program source files. The LM compiler is now working to accept C input.

How it works

  • These files should NOT use the C preprocessor.
  • Any features other than preprocessing are valid to test
  • tests should not be longer than 30 lines of code
  • when tested, LM parses the file and generates a new file "tmp.c" which should be identical aside from whitespace

What to submit

To add a test case

  • create a new file tests/c/[test name].c exhibiting the C feature that you wish to test
  • create an empty file tests/c/[test name].c.out (silence here indicates success)
  • create an empty file tests/c/[test name].c.skip
    • this file marks the test as skippable (will be removed as C frontend improves)
@andrew-johnson-4 andrew-johnson-4 added C Frontend help wanted Extra attention is needed good first issue Good for newcomers labels Feb 24, 2025
@andrew-johnson-4 andrew-johnson-4 self-assigned this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Frontend good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant