Skip to content

Commit

Permalink
CN: test case for enum conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
talsewell committed Sep 18, 2023
1 parent b37e4b8 commit 2ce54df
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/cn/use_enum.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


enum {
num_x = 42,
num_y = 0xdedbeef
};

unsigned int add_x_y (void)
/*@ ensures return == num_x + num_y @*/
{
return num_x + num_y;
}

0 comments on commit 2ce54df

Please sign in to comment.