History

Allow mixing old/new function prototypes

This fixes another external testsuite failure

herman ten brugge committed 1 year ago

Commit 19fdef41 parent 571868c3 files · +28 −4Browse files

Showing the changes to tests (2 of 3 files). Show all

Unified · Split

2 files
  1. tests/tests2/133_old_func.c +8 −0
  2. tests/tests2/133_old_func.expect +1 −0
tests/tests2/133_old_func.c+8−0
@@ -6,6 +6,8 @@ float x; · 5 unmodified lines
66 return 2.0 * x;
77 }
88
9+void func(float a);
10+
911 int
1012 main(void)
1113 {
@@ -13,6 +15,7 @@ main(void) · 1 unmodified line
1315
1416 printf("%g %g\n", fx(2.0), fy(10.0));
1517 printf("%g %g\n", fx(2.0f), fy(10.0f));
18+ func(1);
1619 }
1720
1821 float fy(x)
@@ -21,3 +24,8 @@ float x; · 2 unmodified lines
2124 return 3.0 * x;
2225 }
2326
27+void func(a)
28+float a;
29+{
30+ printf("%g\n", a);
31+}
tests/tests2/133_old_func.expect+1−0
@@ -1,2 +1,3 @@
11 4 30
22 4 30
3+1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t