Ted Kremenek | 83c903f | 2007-11-28 19:05:11 +0000 | [diff] [blame] | 1 | // RUN: clang %s -fsyntax-only |
Chris Lattner | ab18c4c | 2007-07-24 16:58:17 +0000 | [diff] [blame] | 2 | |
3 | typedef unsigned __uint32_t; | ||||
4 | |||||
5 | #define __byte_swap_int_var(x) \ | ||||
6 | __extension__ ({ register __uint32_t __X = (x); \ | ||||
7 | __asm ("bswap %0" : "+r" (__X)); \ | ||||
8 | __X; }) | ||||
9 | |||||
10 | int test(int _x) { | ||||
11 | return (__byte_swap_int_var(_x)); | ||||
12 | } |