1 /* Duff's device is legal C; test to make sure the compiler
2 doesn't complain about it.
4 Jason Thorpe <thorpej@wasabisystems.com>
5 Derived from PR 3846. */
8 /* { dg-options "-O2" } */
10 extern void abort (void);
11 extern void exit (int);
13 typedef __SIZE_TYPE__ size_t;
14 extern int memcmp (const void *, const void *, size_t);
17 duffcpy (char *dst, const char *src, unsigned long size)
38 const char testpat[] = "The quick brown fox jumped over the lazy dog.";
45 duffcpy (buf, testpat, sizeof (testpat));
46 if (memcmp (buf, testpat, sizeof (testpat)) != 0)