Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite70089f

Browse files
committed
A18-5-5/A18-5-6: Make test case valid for gcc
1 parent1f9a3b4 commite70089f

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
returnmalloc1(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) {returnnullptr; }// 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) {returnnullptr; }// NON_COMPLIANT
99

1010
voidh1() {}// NON_COMPLIANT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp