Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / Inputs / plt.c
blob475c15b9cb3cbcbf5796cf93e16f3a8de912f8a9
1 #include "stub.h"
3 void *(*memcpy_p)(void *dest, const void *src, unsigned long n);
4 void *(*memset_p)(void *dest, int c, unsigned long n);
6 int main() {
7 int a = 0xdeadbeef, b = 0;
9 memcpy_p = memcpy;
10 memcpy_p(&b, &a, sizeof(b));
11 if (b != 0xdeadbeef)
12 return 1;
14 memset_p = memset;
15 memset_p(&a, 0, sizeof(a));
16 if (a != 0)
17 return 1;
19 printf("Test completed\n");