summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-06-16 12:36:28 +0200
committerXavier Claessens <xclaesse@gmail.com>2011-08-26 17:38:04 +0200
commit59beca8eda96b472b05ad850483e41386dfbc030 (patch)
tree4d6cacced123bc59a5a4b2e055992f68e06407a9 /tests
parent76c8019b0d7d2b6ecc98daa8277e739e71a2c688 (diff)
downloadgobject-introspection-59beca8eda96b472b05ad850483e41386dfbc030.tar.gz
add regression test for skipped #define
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/regress.c6
-rw-r--r--tests/scanner/regress.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 191ae08b..04b49507 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -1338,6 +1338,12 @@ regress_test_garray_container_return (void)
/* enums / flags */
+/**
+ * NUM_REGRESS_FOO: (skip)
+ *
+ * num of elements in RegressFoo
+ */
+
GType
regress_test_enum_get_type (void)
{
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index 2c6fa59d..f30fcd78 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -142,6 +142,8 @@ GVariant *regress_test_gvariant_as (void);
/* enums / flags */
+#define NUM_REGRESS_FOO
+
typedef enum
{
REGRESS_TEST_VALUE1,