Skip to content
Snippets Groups Projects
Commit f4f69097 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[tests] new tests for location of parsing error

parent b79f187d
No related branches found
No related tags found
No related merge requests found
/* run.config
EXIT: 1
STDOPT:
*/
/*@ assigns *p \from \nothing; */
void f(char *p)
/*@
assigns \result \from \nothing;
ensures \result == 0;
*/
char g(char *p);
[kernel] Parsing static_assert_wrong.i (no preprocessing)
[kernel] static_assert_wrong.i:8:
syntax error:
Location: line 8, between columns 0 and 3, before or at token: int
6 _Static_assert(1,"assert succeeds")
7
8 int x = 0;
^^^
[kernel] Frama-C aborted: invalid user input.
/* run.config*
EXIT: 1
STDOPT:
*/
_Static_assert(1,"assert succeeds")
int x = 0;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment