xref: /minix3/tests/usr.bin/xlint/lint1/d_gcc_compound_statements2.c (revision 11be35a165022172ed3cea20f2b5df0307540b0e)
1*11be35a1SLionel Sambuc /* GCC compound statements with non-expressions */
2*11be35a1SLionel Sambuc struct cpu_info {
3*11be35a1SLionel Sambuc 	int bar;
4*11be35a1SLionel Sambuc };
5*11be35a1SLionel Sambuc 
6*11be35a1SLionel Sambuc int
main(void)7*11be35a1SLionel Sambuc main(void)
8*11be35a1SLionel Sambuc {
9*11be35a1SLionel Sambuc 	return ({
10*11be35a1SLionel Sambuc 	    struct cpu_info *__ci;
11*11be35a1SLionel Sambuc 	    __asm__ volatile("movl %%fs:4,%0":"=r" (__ci));
12*11be35a1SLionel Sambuc 	    __ci;
13*11be35a1SLionel Sambuc 	})->bar;
14*11be35a1SLionel Sambuc }
15