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

typedef int my_int; + (my_int*)x; - Parser error. #21

Closed
necto opened this issue Apr 20, 2016 · 1 comment
Closed

typedef int my_int; + (my_int*)x; - Parser error. #21

necto opened this issue Apr 20, 2016 · 1 comment

Comments

@necto
Copy link
Contributor

necto commented Apr 20, 2016

Another inconsistency in the VeriFast parser. This works:

typedef int my_int;

my_int foo(my_int k)
//@ requires true;
//@ ensures true;
{
  return (my_int)k;
}

While this does not parse:

typedef int my_int;

my_int* foo(my_int* k)
//@ requires true;
//@ ensures true;
{
  return (my_int*)k;
}
@btj
Copy link
Member

btj commented Sep 2, 2016

Fixed by 9e8b145

@btj btj closed this as completed Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants