Skip to content

Commit

Permalink
Units: add a line and pattern for #undef
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Feb 2, 2015
1 parent d9f519e commit c163fd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Units/directives.c.t/expected.tags
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FUNCTION_LIKE input.c /^#define FUNCTION_LIKE(/;" d file:
MACRO_TO_SEE1 input.c /^# define MACRO_TO_SEE1 /;" d file:
MACRO_TO_SEE1 input.c /^#undef MACRO_TO_SEE1$/;" d file:
MACRO_TO_SEE2 input.c /^# define MACRO_TO_SEE2 /;" d file:
MACRO_TO_SEE3 input.c /^# define MACRO_TO_SEE3 /;" d file:
MACRO_TO_SEE4 input.c /^# define MACRO_TO_SEE4 /;" d file:
Expand Down
2 changes: 2 additions & 0 deletions Units/directives.c.t/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ int p2;
}
int p3;
#endif
#undef MACRO_TO_SEE1

0 comments on commit c163fd3

Please sign in to comment.