File: test16.c

package info (click to toggle)
faucc 20120707-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,424 kB
  • ctags: 2,909
  • sloc: ansic: 38,774; yacc: 1,600; xml: 519; lex: 378; sh: 178; makefile: 127
file content (50 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* $Id: test16.c,v 1.5 2009-01-27 15:58:54 potyra Exp $ 
 *
 * Copyright (C) 2008-2009 FAUcc Team <info@faumachine.org>.
 * This program is free software. You can redistribute it and/or modify it
 * under the terms of the GNU General Public License, either version 2 of
 * the License, or (at your option) any later version. See COPYING.
 */
enum bool {
        false = 0,
	true
};

int
f(char c, int i)
{
	return (c > i) || i;
}

int
f1(double l)
{
        int i = l + 1;
	return i;
}

int
f2(double l)
{
	int i = l;
	return i + 1;
}

enum bool
f3(char c)
{
	enum bool b = c;
	return b;
}

inline int
f4(int i)
{
        return i;
}

int
f5(char c)
{
	return f4(c);
}