Commit 09b73ec
Test: Regression test for Pulse fn extraction with .fsti interface
Adds a minimal test case that verifies Pulse fn declarations in .fsti interface
files are correctly extracted to C via KaRaMeL. Previously, such functions were
silently dropped due to the interleaver not recognizing DeclToBeDesugared as an
interface declaration (fixed in FStarC.ToSyntax.Interleave.fst).
The test defines:
- pure_add: a pure function (control — always worked)
- pulse_read_ref: a Pulse fn reading a ref (was dropped, now extracted)
Both must appear in the generated .c file. The .c.expected file is checked
against actual KaRaMeL output by mk/test.mk's automatic diff mechanism.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1f1c90c commit 09b73ec
File tree
3 files changed
+57
-0
lines changed- test/bug-reports
3 files changed
+57
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments