tests: make no-optimize attribute Clang compatible
This commit is contained in:
10
test/test_util.h
Normal file
10
test/test_util.h
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef TEST_UTIL_H
|
||||
#define TEST_UTIL_H
|
||||
|
||||
#ifdef __clang__
|
||||
#define OPTNONE __attribute__((optnone))
|
||||
#else
|
||||
#define OPTNONE __attribute__((optimize(0)))
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user