diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-16 00:43:36 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-16 00:48:59 -0500 |
commit | fa8e95cd172769c337a5945cfaa4f0aeb1d128ca (patch) | |
tree | 812dbcc5fdfeb267327661b7a4016d1b228d48d5 /tests/scanner/regress.h | |
parent | a21f3238c8701f79f98486101123c6de01e439ea (diff) | |
download | gobject-introspection-fa8e95cd172769c337a5945cfaa4f0aeb1d128ca.tar.gz |
sourcescanner: Fix symbolic references in enum members
We need to copy the source symbols, otherwise we'll
overwrite their values. This isn't good.
https://bugzilla.gnome.org/show_bug.cgi?id=693939
Diffstat (limited to 'tests/scanner/regress.h')
-rw-r--r-- | tests/scanner/regress.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index f243a14c..ba82ca83 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -189,6 +189,16 @@ GType regress_test_enum_unsigned_get_type (void) G_GNUC_CONST; GType regress_test_flags_get_type (void) G_GNUC_CONST; #define REGRESS_TEST_TYPE_FLAGS (regress_test_flags_get_type ()) +typedef enum +{ + REGRESS_TEST_REFERENCE_0 = 2 + 2, + REGRESS_TEST_REFERENCE_1 = 1 + 1, + REGRESS_TEST_REFERENCE_2 = 6 * 9, + REGRESS_TEST_REFERENCE_3 = REGRESS_TEST_REFERENCE_1 + REGRESS_TEST_REFERENCE_1, + REGRESS_TEST_REFERENCE_4 = REGRESS_TEST_REFERENCE_2 * REGRESS_TEST_REFERENCE_3, + REGRESS_TEST_REFERENCE_5 = ~REGRESS_TEST_REFERENCE_4, +} RegressTestReferenceEnum; + /* this is not registered with GType */ typedef enum { |