From dffc9885e54f9c68af23ec79023dfe8516a4cc32 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Thu, 16 Sep 2021 14:54:22 +0200 Subject: Add support to clightgen for generating Csyntax AST as .v files As proposed in #404. This is presented as a new option `-clight` to the existing `clightgen` tool. Revise clightgen testing to test the Csyntax output in addition to the Clight output. --- test/export/issue319.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/export/issue319.c (limited to 'test/export/issue319.c') diff --git a/test/export/issue319.c b/test/export/issue319.c new file mode 100644 index 00000000..be9f3f7e --- /dev/null +++ b/test/export/issue319.c @@ -0,0 +1,12 @@ +/* Dollar signs in identifiers */ + +int c$d = 42; + +int a$b(int x$$) { + return c$d + x$$; +} + +int main(int argc, const char *argv[]) +{ + return a$b(6); +} -- cgit