]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/contrib/zstd/tests/namespaceTest.c
MFV r329760: 7638 Refactor spa_load_impl into several functions
[FreeBSD/FreeBSD.git] / sys / contrib / zstd / tests / namespaceTest.c
1 /*
2  * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under both the BSD-style license (found in the
6  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7  * in the COPYING file in the root directory of this source tree).
8  * You may select, at your option, one of the above-listed licenses.
9  */
10
11
12
13 #include <stddef.h>  /* size_t */
14 #include <string.h>  /* strlen */
15
16 /* symbol definition */
17 extern unsigned XXH32(const void* src, size_t srcSize, unsigned seed);
18
19 int main(int argc, const char** argv)
20 {
21     const char* exename = argv[0];
22     unsigned result = XXH32(exename, strlen(exename), argc);
23     return !result;
24 }