summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-06-18 15:34:50 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-06-21 12:31:04 -0700
commit214632f527c2698602580038763ec72154ca2109 (patch)
tree70f63c8ee1cba7ec12ada87ac054f10973139757
parent8f322216382e2f017b4f3adefd441f84f45b0249 (diff)
glcpp/tests: Add a test for #version followed by #define.
This isn't really a C file, but...that's probably okay.
-rw-r--r--glcpp/tests/064-version.c2
-rw-r--r--glcpp/tests/064-version.c.expected3
2 files changed, 5 insertions, 0 deletions
diff --git a/glcpp/tests/064-version.c b/glcpp/tests/064-version.c
new file mode 100644
index 0000000000..21326481b8
--- /dev/null
+++ b/glcpp/tests/064-version.c
@@ -0,0 +1,2 @@
+#version 130
+#define FOO
diff --git a/glcpp/tests/064-version.c.expected b/glcpp/tests/064-version.c.expected
new file mode 100644
index 0000000000..3af71113c8
--- /dev/null
+++ b/glcpp/tests/064-version.c.expected
@@ -0,0 +1,3 @@
+#version 130
+
+