1 #include <stdio.h>
2 
3 int
main()4 main() {
5 	/*
6 	 * Test that usual arithmetic conversion is performed properly, with
7 	 * partially and fully constant expressions.
8 	 *
9 	 * There were no bugs here, but it's good to have a test for it
10 	 */
11 	long long	LL;
12 	static int	size = sizeof (1? 0: 0LL);
13 	static int	size2 = sizeof (1? 0LL: 0);
14 	auto int	size3 = sizeof (1? 0: LL);
15 	auto int	size4 = sizeof (1? LL: 0);
16 
17 	printf("%d\n", size);
18 	printf("%d\n", size2);
19 	printf("%d\n", size3);
20 	printf("%d\n", size4);
21 	return 0;
22 }
23 
24