1 /* Copyright (C) 2001 Free Software Foundation.
3 Ensure that builtin memcmp operations when all three arguments
4 are constant is optimized and performs correctly. Taken from
7 Written by Roger Sayle, 12/26/2001. */
9 extern void abort (void);
10 extern void link_error (void);
12 typedef __SIZE_TYPE__ size_t;
13 extern int memcmp (const void *, const void *, size_t);
18 if (memcmp ("abcd", "efgh", 4) >= 0)
20 if (memcmp ("abcd", "abcd", 4) != 0)
22 if (memcmp ("efgh", "abcd", 4) <= 0)
27 /* When not optimizing, the above tests may generate references to
28 the function link_error, but should never actually call it. */