Skip to content

Commit

Permalink
Added more unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 5, 2010
1 parent 9b2caff commit 42fef0a
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unit_tests/preprocessor/errors/redefinition
@@ -0,0 +1,2 @@
#define x 1
#define x 2
1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/redefinition-file
@@ -0,0 +1 @@
#define __FILE__ 3
1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/redefinition-file.correct
@@ -0,0 +1 @@
preprocessor/errors/redefinition-file:2: ERROR: '__FILE__' already defined
3 changes: 3 additions & 0 deletions unit_tests/preprocessor/errors/redefinition-line
@@ -0,0 +1,3 @@
#define __LINE__ "wrong"


1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/redefinition-line.correct
@@ -0,0 +1 @@
preprocessor/errors/redefinition-line:2: ERROR: '__LINE__' already defined
1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/redefinition.correct
@@ -0,0 +1 @@
preprocessor/errors/redefinition:3: ERROR: 'x' already defined
1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/undef-file
@@ -0,0 +1 @@
#undef __FILE__
4 changes: 4 additions & 0 deletions unit_tests/preprocessor/errors/undef-file-twice
@@ -0,0 +1,4 @@
// this should only produce one warning.
#undef __FILE__
#undef __FILE__

1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/undef-file-twice.correct
@@ -0,0 +1 @@
preprocessor/errors/undef-file-twice:3: ERROR: undefining "__FILE__"
1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/undef-file.correct
@@ -0,0 +1 @@
preprocessor/errors/undef-file:1: ERROR: undefining "__FILE__"
2 changes: 2 additions & 0 deletions unit_tests/preprocessor/errors/undef-line
@@ -0,0 +1,2 @@
#undef __LINE__

4 changes: 4 additions & 0 deletions unit_tests/preprocessor/errors/undef-line-twice
@@ -0,0 +1,4 @@
// this should only produce one warning.
#undef __LINE__
#undef __LINE__

1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/undef-line-twice.correct
@@ -0,0 +1 @@
preprocessor/errors/undef-line-twice:3: ERROR: undefining "__LINE__"
1 change: 1 addition & 0 deletions unit_tests/preprocessor/errors/undef-line.correct
@@ -0,0 +1 @@
preprocessor/errors/undef-line:2: ERROR: undefining "__LINE__"

0 comments on commit 42fef0a

Please sign in to comment.