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/tests2 (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
6 return 2.0 * x;6 return 2.0 * x;
7}7}
8 8
9void func(float a);
10
9int11int
10main(void)12main(void)
11{13{
@@ -13,6 +15,7 @@ main(void) · 1 unmodified line
13 15
14 printf("%g %g\n", fx(2.0), fy(10.0));16 printf("%g %g\n", fx(2.0), fy(10.0));
15 printf("%g %g\n", fx(2.0f), fy(10.0f));17 printf("%g %g\n", fx(2.0f), fy(10.0f));
18 func(1);
16}19}
17 20
18float fy(x)21float fy(x)
@@ -21,3 +24,8 @@ float x; · 2 unmodified lines
21 return 3.0 * x;24 return 3.0 * x;
22}25}
23 26
27void func(a)
28float a;
29{
30 printf("%g\n", a);
31}
tests/tests2/133_old_func.expect+1−0
@@ -1,2 +1,3 @@
14 3014 30
24 3024 30
31

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