Skip to content

Commit

Permalink
Avoid name conflict with register name
Browse files Browse the repository at this point in the history
TODO: Fix operand parser.
  • Loading branch information
tyfkda committed Apr 27, 2024
1 parent ae309c3 commit 3f3c304
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/valtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,8 +904,8 @@ long proto_in_func(short x) { return x + 1; }
typedef int SameTypedefAllowed;
typedef int SameTypedefAllowed;

int f27(void){return 27;}
int f53(void){return 53;}
int fc27(void){return 27;}
int fc53(void){return 53;}
void mul2p(int *p) {*p *= 2;}
const char *retstr(void){ return "foo"; }

Expand Down Expand Up @@ -1158,7 +1158,7 @@ TTT:;
EXPECT("ternary ptr:0", 98, *q);

int selector = 0;
EXPECT("ternary w/ func", 53, (selector ? f27 : f53)());
EXPECT("ternary w/ func", 53, (selector ? fc27 : fc53)());

char buf[16] = "";
selector ? (void)strcpy(buf, "true") : (void)strcpy(buf, "false");
Expand Down

0 comments on commit 3f3c304

Please sign in to comment.