summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/stdio.h2
-rw-r--r--tests/test_asprintf.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 3e31f29..200a176 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -243,6 +243,7 @@ _FORTIFY_FN(vasprintf) int vasprintf(char **strp, const char *fmt, __builtin_va_
243#endif // __clang__ 243#endif // __clang__
244 244
245 245
246#if 0
246#if __has_builtin(__builtin_va_arg_pack) 247#if __has_builtin(__builtin_va_arg_pack)
247 248
248/* clang is missing __builtin_va_arg_pack, so we cannot use these impls 249/* clang is missing __builtin_va_arg_pack, so we cannot use these impls
@@ -356,6 +357,7 @@ _FORTIFY_FN(asprintf) int asprintf(char **strp, const char *fmt, ...)
356 357
357#pragma GCC diagnostic pop 358#pragma GCC diagnostic pop
358#endif /* __has_builtin(__builtin_va_arg_pack) */ 359#endif /* __has_builtin(__builtin_va_arg_pack) */
360#endif
359 361
360#ifdef __cplusplus 362#ifdef __cplusplus
361} 363}
diff --git a/tests/test_asprintf.c b/tests/test_asprintf.c
index a02d110..67723e8 100644
--- a/tests/test_asprintf.c
+++ b/tests/test_asprintf.c
@@ -11,10 +11,12 @@ int main(int argc, char** argv) {
11 puts(buf); 11 puts(buf);
12 free(buf); 12 free(buf);
13 13
14#if 0
14#ifndef __clang__ 15#ifndef __clang__
15 asprintf(&buf, "total: %", 1); 16 asprintf(&buf, "total: %", 1);
16 assert(buf == NULL); 17 assert(buf == NULL);
17#endif 18#endif
19#endif
18 20
19 return 0; 21 return 0;
20} 22}