Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
e4e666f459
4563 changed files with 1690372 additions and 0 deletions
15
thirdparty/hedley/test/cast.c
vendored
Normal file
15
thirdparty/hedley/test/cast.c
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "../hedley.h"
|
||||
|
||||
int main(void) {
|
||||
int foo = 0;
|
||||
long bar = HEDLEY_STATIC_CAST(long, foo);
|
||||
const char* baz = "Hello, world!";
|
||||
char* qux = HEDLEY_CONST_CAST(char*, baz);
|
||||
|
||||
if (bar != 0)
|
||||
return 1;
|
||||
if (baz != qux)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue