summaryrefslogtreecommitdiff
path: root/tests/non-glib.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-11-20 10:00:40 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-11-20 10:00:40 +0000
commit2b4bc24677474e24ddf7668ec0fe39ad1c6f6622 (patch)
tree7fbc1c2fb655e016296a554be5635e846af82dc6 /tests/non-glib.c
parent55fdb7a37fbe8d7b3bee96fb41bfef1975993b9a (diff)
tests: Add a non-GLib test
As a follow up to commit 915a744037d93abfcaab8b35e98e281cf88bb132, add a non-GLib test, which checks that scanning a file which doesn’t include glib.h succeeds.
Diffstat (limited to 'tests/non-glib.c')
-rw-r--r--tests/non-glib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/non-glib.c b/tests/non-glib.c
new file mode 100644
index 0000000..c82dbc9
--- /dev/null
+++ b/tests/non-glib.c
@@ -0,0 +1,10 @@
+/* Template: generic-non-glib */
+
+/*
+ * No error
+ */
+{
+ // This should compile OK without the checker falling over because
+ // glib.h has not been included.
+ printf ("Hello world!\n");
+}