xref: /netbsd-src/tests/usr.bin/xlint/lint1/d_gcc_compound_statements2.c (revision 9fb66d812c00ebfb445c0b47dea128f32aa6fe96)
1 /*	$NetBSD: d_gcc_compound_statements2.c,v 1.2 2021/01/31 14:39:31 rillig Exp $	*/
2 # 3 "d_gcc_compound_statements2.c"
3 
4 /* GCC compound statements with non-expressions */
5 struct cpu_info {
6 	int bar;
7 };
8 
9 int
10 main(void)
11 {
12 	return ({
13 	    struct cpu_info *__ci;
14 	    __asm__ volatile("movl %%fs:4,%0":"=r" (__ci));
15 	    __ci;
16 	})->bar;
17 }
18