Skip to content

Commit e70089f

Browse files
committed
A18-5-5/A18-5-6: Make test case valid for gcc
1 parent 1f9a3b4 commit e70089f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/autosar/test/rules/A18-5-5/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void *malloc1(int b) { // NON_COMPLIANT - recursion
1111
return malloc1(b - 1);
1212
}
1313

14-
void *malloc2(int b) __attribute__((no_caller_saved_registers, __malloc__));
14+
void *malloc2(int b) __attribute__((__malloc__));
1515
void *malloc2(int b) { // NON_COMPLIANT - execution doesn't depend on b
1616

1717
for (int i = 0; i < 10; i++) {

cpp/autosar/test/rules/A18-5-6/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ void *malloc1(int b) __attribute__((malloc));
44

55
void *malloc1(int b) { return nullptr; } // NON_COMPLIANT
66

7-
void *malloc3(int b) __attribute__((no_caller_saved_registers, __malloc__));
7+
void *malloc3(int b) __attribute__((__malloc__));
88
void *malloc3(int b) { return nullptr; } // NON_COMPLIANT
99

1010
void h1() {} // NON_COMPLIANT

0 commit comments

Comments
 (0)