1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
2
3 #include <inttypes.h>
4 #include <stdio.h>
5 #include <stdlib.h>
6
main(void)7 int main(void) {
8 unsigned char key[] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99};
9 uint32_t hashes[3];
10 mi_vector_hash(key, __arraycount(key), 0, hashes);
11 for (size_t i = 0; i < __arraycount(hashes); i++)
12 printf("hashes[%zu]='%" PRIx32 "'\n", i, hashes[i]);
13
14 // CHECK: hashes[0]='{{.*}}'
15 // CHECK: hashes[1]='{{.*}}'
16 // CHECK: hashes[2]='{{.*}}'
17
18 return 0;
19 }
20