Skip to content

Commit

Permalink
tests: Don't take the chance to conflict with C99 constant of stdbool.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ricotz committed May 18, 2024
1 parent f47f949 commit ed0077a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/errors/bug778224.c-expected
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ struct _Foo {
gint i;
};

VALA_EXTERN gboolean true;
gboolean true = TRUE;
VALA_EXTERN gboolean truesy;
gboolean truesy = TRUE;

VALA_EXTERN GQuark foo_error_quark (void);
VALA_EXTERN GType foo_error_get_type (void) G_GNUC_CONST ;
Expand Down Expand Up @@ -75,7 +75,7 @@ foo (GError** error)
Foo _tmp3_ = {0};
GError* _inner_error0_ = NULL;
Foo result;
if (true) {
if (truesy) {
GError* _tmp0_;
_tmp0_ = g_error_new_literal (FOO_ERROR, FOO_ERROR_BAR, "");
_inner_error0_ = _tmp0_;
Expand Down
4 changes: 2 additions & 2 deletions tests/errors/bug778224.vala
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ struct Foo {
int i;
}

bool @true = true;
bool truesy = true;

Foo foo () throws FooError {
if (@true) {
if (truesy) {
throw new FooError.BAR ("");
}

Expand Down

0 comments on commit ed0077a

Please sign in to comment.