Skip to content

Commit c7e2e87

Browse files
committed
Format the stub code and add stdlib.h to test
1 parent b454890 commit c7e2e87

File tree

2 files changed

+2
-1
lines changed
  • cpp
    • common/test/includes/standard-library
    • misra/test/rules/RULE-21-6-2

2 files changed

+2
-1
lines changed

cpp/common/test/includes/standard-library/stdlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void *calloc(size_t num, size_t size);
77
void free(void *ptr);
88
void *malloc(size_t size);
99
void *realloc(void *ptr, size_t size);
10-
void* aligned_alloc(size_t, size_t);
10+
void *aligned_alloc(size_t, size_t);
1111

1212
[[noreturn]] void _Exit(int status) noexcept;
1313
[[noreturn]] void abort(void) noexcept;

cpp/misra/test/rules/RULE-21-6-2/test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <cstdlib>
2+
#include <stdlib.h>
23
#include <memory>
34
#include <memory_resource>
45
#include <scoped_allocator>

0 commit comments

Comments
 (0)