diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 10 | ||||
-rw-r--r-- | tests/scanner/regress.h | 12 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 637a2735..bb83e225 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -1911,6 +1911,16 @@ exposed to language bindings.</doc> </parameter> </parameters> </callback> + <constant name="GI_SCANNER_ELSE" + value="3" + c:type="REGRESS_GI_SCANNER_ELSE"> + <type name="gint" c:type="gint"/> + </constant> + <constant name="GI_SCANNER_IFDEF" + value="3" + c:type="REGRESS_GI_SCANNER_IFDEF"> + <type name="gint" c:type="gint"/> + </constant> <constant name="GUINT64_CONSTANT" value="18446744073709551615" c:type="REGRESS_GUINT64_CONSTANT"> diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index 274d0e4b..9c858840 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -950,4 +950,16 @@ typedef struct { #define REGRESS_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000)) #define REGRESS_MAXUINT64 (G_GINT64_CONSTANT(0xffffffffffffffffU)) +/* https://bugzilla.gnome.org/show_bug.cgi?id=698367 */ +#ifndef __GI_SCANNER__ +#define REGRESS_DONTSCANTHIS 1 +#else +#define REGRESS_GI_SCANNER_ELSE 3 +#endif +#ifndef BLAH +#ifdef __GI_SCANNER__ +#define REGRESS_GI_SCANNER_IFDEF 3 +#endif +#endif + #endif /* __GITESTTYPES_H__ */ |