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
26
thirdparty/hedley/test/unknown-cpp-attributes.c
vendored
Normal file
26
thirdparty/hedley/test/unknown-cpp-attributes.c
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include "../hedley.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(__cplusplus)
|
||||
# if __cplusplus >= 201103L
|
||||
# define UNPREDICTABLE \
|
||||
HEDLEY_DIAGNOSTIC_PUSH \
|
||||
HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES \
|
||||
HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[unpredictable]]) \
|
||||
HEDLEY_DIAGNOSTIC_POP
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(UNPREDICTABLE)
|
||||
# define UNPREDICTABLE
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
HEDLEY_STATIC_CAST(void, argv);
|
||||
|
||||
if (argc == 1) UNPREDICTABLE {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue