tests: make no-optimize attribute Clang compatible

This commit is contained in:
Daniel Micay
2020-06-17 16:39:50 -04:00
parent b404d6da6e
commit de3fb50dcc
34 changed files with 113 additions and 67 deletions

View File

@ -1,7 +1,8 @@
#include <stdlib.h>
__attribute__((optimize(0)))
int main(void) {
#include "../test_util.h"
OPTNONE int main(void) {
void *p = realloc((void *)1, 16);
if (!p) {
return 1;