Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
frama-c
Commits
ef390339
Commit
ef390339
authored
Jun 30, 2020
by
Virgile Prevosto
Browse files
[tests] add test for dos line ending pre-processing
parent
3052868a
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/spec/oracle/preprocess_dos.res.oracle
0 → 100644
View file @
ef390339
[kernel] Parsing tests/spec/preprocess_dos.c (with preprocessing)
/* Generated by Frama-C */
int main(void)
{
int a = 0;
/*@ assert a ≡ 0; */ ;
return a;
}
tests/spec/preprocess_dos.c
0 → 100644
View file @
ef390339
/* run.config*
OPT: -cpp-command="@PTEST_DIR@/@PTEST_NAME@.sh %i %o" -cpp-frama-c-compliant -print
*/
int
main
()
{
int
a
=
0
;
/*@
assert a == 0;
*/
return
a
;
}
tests/spec/preprocess_dos.sh
0 → 100755
View file @
ef390339
#!/bin/sh
gcc
-C
-E
-I
.
-o
$2
$1
dos2unix
-q
$2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment