summaryrefslogtreecommitdiff
path: root/tests/001-define.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-10 16:21:10 -0700
committerCarl Worth <cworth@cworth.org>2010-05-10 16:21:10 -0700
commite8c790b3ceab06eb0433c3a234d3e16980f7ef19 (patch)
tree1513d85cfb33696fa88726b42e2a5623df079abc /tests/001-define.c
parent0b27b5f05191f07ed31e65ff07e5233672f3c33a (diff)
Add a very simple test for the pre-processor.
Validate desired test cases by ensuring the output of glcpp matches the output of the gcc preprocessor, (ignoring any lines of the gcc output beginning with '#'). Only one test case so far with a trivial #define.
Diffstat (limited to 'tests/001-define.c')
-rw-r--r--tests/001-define.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/001-define.c b/tests/001-define.c
new file mode 100644
index 0000000000..cbf2fee0e7
--- /dev/null
+++ b/tests/001-define.c
@@ -0,0 +1,2 @@
+#define foo 1
+foo