Add unit test suites (#3490)

This commit is contained in:
Zhang, Yi
2024-06-04 11:24:27 +08:00
committed by GitHub
parent 0a80cc4e94
commit 380cd7b0e7
194 changed files with 14104 additions and 34 deletions

View File

@ -0,0 +1,32 @@
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>
void
on_init()
{}
int
my_sqrt(int x, int y)
{
return x * x + y * y;
}
void *
null_pointer()
{
void *ptr = NULL;
return ptr;
}
void *
my_malloc(int size)
{
return malloc(size);
}