about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-01-23 08:25:33 -0800
committerStan Shebs <stanshebs@google.com>2018-01-24 16:03:39 -0800
commit02023efdf7b6a08c268367b7d364b1b82fbb1fe7 (patch)
tree9cfb21ddbd2b2c06a323098839e467a0341f6442
parent3f0460438ada00b7924ac32341f63dff84ba1cd2 (diff)
downloadglibc-02023efdf7b6a08c268367b7d364b1b82fbb1fe7.tar.gz
glibc-02023efdf7b6a08c268367b7d364b1b82fbb1fe7.tar.xz
glibc-02023efdf7b6a08c268367b7d364b1b82fbb1fe7.zip
Work around a clang bug
-rw-r--r--stdio-common/bug23-3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdio-common/bug23-3.c b/stdio-common/bug23-3.c
index 57c8cef195..5e568af159 100644
--- a/stdio-common/bug23-3.c
+++ b/stdio-common/bug23-3.c
@@ -5,6 +5,7 @@
 int
 do_test (void)
 {
+#ifndef __clang__ /* clang never finishes */
   size_t instances = 16384;
 #define X0 "\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
   const char *item = "\na\nabbcd55";
@@ -44,6 +45,7 @@ do_test (void)
       return 1;
     }
   free (buf);
+#endif /* __clang__ */
   return 0;
 }
 #define TEST_FUNCTION do_test ()