File: test5.c

package info (click to toggle)
faucc 20180503-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 1,452 kB
  • sloc: ansic: 38,797; yacc: 1,602; xml: 519; lex: 378; sh: 178; makefile: 125
file content (30 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (3)
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
/* $Id: test5.c,v 1.3 2009/01/27 15:58:54 potyra Exp $ 
 *
 * Copyright (C) 2007-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.
 */
int func0(void) { return 0; }
int func1(void) { return 0; }
int func2(void) { return 0; }
int func3(void) { return 0; }

int
main(void)
{
	int a;
	int b;
	int c;

	a = 0;
	b = 1;

	c = a + 2 * b;

	b || func2();
	a && func3();
	a ? func0() : func1();

	return a + b + c;
}