summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlban Browaeys <prahal@yahoo.com>2012-06-29 04:38:04 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-08-03 13:57:19 +0200
commit8b4d1acc40c03ddb0255b6a9f10ee5d731b39016 (patch)
treee289efa198d3bf4d48b7f024c2edcae2a12add60 /tests
parentbeb5c820139693c85f4e5277a7c430dd6042fbcb (diff)
downloadgobject-introspection-8b4d1acc40c03ddb0255b6a9f10ee5d731b39016.tar.gz
scanner: handle unsigned properly for type of defined size
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/Regress-1.0-expected.gir5
-rw-r--r--tests/scanner/regress.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index 43258f2a..9b773fb5 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -44,6 +44,11 @@ and/or use gtk-doc annotations. -->
c:type="REGRESS_DOUBLE_CONSTANT">
<type name="gdouble" c:type="gdouble"/>
</constant>
+ <constant name="GUINT64_CONSTANT"
+ value="18446744073709551615"
+ c:type="REGRESS_GUINT64_CONSTANT">
+ <type name="guint64" c:type="guint64"/>
+ </constant>
<constant name="G_GINT64_CONSTANT"
value="1000"
c:type="REGRESS_G_GINT64_CONSTANT">
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index 0c071f51..ce5d1dc2 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -260,6 +260,7 @@ GQuark regress_atest_error_quark (void);
#define REGRESS_STRING_CONSTANT "Some String"
#define REGRESS_Mixed_Case_Constant 4423
#define REGRESS_G_GINT64_CONSTANT (G_GINT64_CONSTANT (1000))
+#define REGRESS_GUINT64_CONSTANT ((guint64) -1)
/* structures */
typedef struct _RegressTestStructA RegressTestStructA;