1#define SAME_TYPE(A, B)	\
2	__builtin_types_compatible_p(A, B)
3
4struct s {
5	int i;
6};
7
8static void foo(struct s *p)
9{
10	*p = (struct s) { .i = SAME_TYPE(int, int), };
11}
12
13/*
14 * check-name: compound-literal
15 * check-command: test-linearize $file
16 *
17 * check-output-start
18foo:
19.L0:
20	<entry-point>
21	store.32    $1 -> 0[%arg1]
22	ret
23
24
25 * check-output-end
26 */
27