diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-04-01 23:51:04 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-11-20 14:53:07 -0300 |
| commit | 8cfd63d0afd11ed0f3aed60138591831909b54d6 (patch) | |
| tree | c51cd35fffc0d750a2fe852f0115c05e0241f335 | |
| parent | b0faad30d4ebdb5db764ddbca378c4c9302a1ac4 (diff) | |
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).
| -rw-r--r-- | stdio-common/tst-vfprintf-user-type.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/stdio-common/tst-vfprintf-user-type.c b/stdio-common/tst-vfprintf-user-type.c index 3fc98b30f1..41ae8a45c1 100644 --- a/stdio-common/tst-vfprintf-user-type.c +++ b/stdio-common/tst-vfprintf-user-type.c @@ -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)]]"); |
