stdio: Fix tst-vfprintf-user-type on clang

The pointer alias comparison will be optimized away by the compiler,
and gcc and clang will evaluate differently (clang evaluates as
false, while gcc as true).
This commit is contained in:
Adhemerval Zanella 2022-04-01 23:51:04 -03:00
parent 8bbc0864ec
commit fa83d4c15b
1 changed files with 0 additions and 1 deletions

View File

@ -183,7 +183,6 @@ do_test (void)
#else
extern int asprintf_alias (char **, const char *, ...) __asm__ ("asprintf");
#endif
TEST_VERIFY (asprintf_alias == asprintf);
char *str = NULL;
TEST_VERIFY (asprintf_alias (&str, "[[%P]]", 123L, 456.0) >= 0);
TEST_COMPARE_STRING (str, "[[(123, 456.000000)]]");