mirror of git://sourceware.org/git/glibc.git
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:
parent
8bbc0864ec
commit
fa83d4c15b
|
@ -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)]]");
|
||||
|
|
Loading…
Reference in New Issue