Skip to content

Commit

Permalink
Unit tests for previous fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 4, 2010
1 parent bbf1b7e commit b9b5e7f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unit_tests/preprocessor/output/elif-after-macro
@@ -0,0 +1,9 @@
// This triggered an error before, when the "== D0" would not pop_source().
#define D0 0
#if DA == D0
RIGHT
#elif D5 >= D4
WRONG
#else
ALSOWRONG
#endif
8 changes: 8 additions & 0 deletions unit_tests/preprocessor/output/elif-after-macro-with-args
@@ -0,0 +1,8 @@
#define D0(x) 0
#if DA == D0(5)
RIGHT
#elif D5 >= D4
WRONG
#else
ALSOWRONG
#endif
@@ -0,0 +1 @@
RIGHT
1 change: 1 addition & 0 deletions unit_tests/preprocessor/output/elif-after-macro.correct
@@ -0,0 +1 @@
RIGHT

0 comments on commit b9b5e7f

Please sign in to comment.