Skip to content

Commit

Permalink
Added some unit tests for the preprocessor #line directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 25, 2010
1 parent e335821 commit 56c448b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unit_tests/preprocessor/output/line-directive-filename
@@ -0,0 +1,3 @@
// This should NOT produce an error
#line 1337 "Some_other_source_file.txt"
RIGHT
@@ -0,0 +1 @@
RIGHT
3 changes: 3 additions & 0 deletions unit_tests/preprocessor/output/line-directive-no-filename
@@ -0,0 +1,3 @@
// This should NOT produce an error
#line 1337
RIGHT
@@ -0,0 +1 @@
RIGHT
@@ -0,0 +1,3 @@
// This should NOT produce an error
#line 1337 "Some filename with a spaces in it.txt"
RIGHT
@@ -0,0 +1 @@
RIGHT

0 comments on commit 56c448b

Please sign in to comment.