]> pd.if.org Git - lice/blob - tests/kandr.c
autocommit for files dated 2014-11-17 20:13:36
[lice] / tests / kandr.c
1 // K&R C
2
3 #pragma warning_disable
4
5 // implicit integer
6 function() {
7     return 4;
8 }
9
10 int main(void) {
11     expecti(function(), 4);
12     expecti(defined_later(), 1337);
13 }
14
15 defined_later() {
16     // this is defined later, but main can call into it
17     // since K&R doesn't care about declarations
18
19     return 1337;
20 }
21
22 #pragma warning_enable