Skip to content

Commit

Permalink
Minor test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Apr 11, 2024
1 parent 305ee28 commit be4ceb6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/stack-args/interposed.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void foo(int x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8,
}

__attribute__((visibility("default")))
void bar(float x0, float x1, float x2, float x3, float x4, float x5, float x6, float x7, float x8, float x9, float x10, float x11, float x12, float x13, float x14, float x15) {
void bar(double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, double x8, double x9, double x10, double x11, double x12, double x13, double x14, double x15) {
printf("%g ", x0);
printf("%g ", x1);
printf("%g ", x2);
Expand Down
2 changes: 1 addition & 1 deletion tests/stack-args/interposed.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
#define INTERPOSED_H

extern void foo(int x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8, int x9, int x10, int x11, int x12, int x13, int x14, int x15);
extern void bar(float x0, float x1, float x2, float x3, float x4, float x5, float x6, float x7, float x8, float x9, float x10, float x11, float x12, float x13, float x14, float x15);
extern void bar(double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, double x8, double x9, double x10, double x11, double x12, double x13, double x14, double x15);

#endif
4 changes: 2 additions & 2 deletions tests/stack-args/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ int main(int argc, char *argv[]) {
usage(argv[0]);

if (0 == strcmp(argv[1], "int")) {
foo(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
foo(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
} else if (0 == strcmp(argv[1], "float")) {
bar(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
bar(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
} else {
usage(argv[0]);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/stack-args/test.ref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

0 comments on commit be4ceb6

Please sign in to comment.