1 // RUN: clang-cc %s -fsyntax-only -verify
3 typedef unsigned __uint32_t;
5 #define __byte_swap_int_var(x) \
6 __extension__ ({ register __uint32_t __X = (x); \
7 __asm ("bswap %0" : "+r" (__X)); \
11 return (__byte_swap_int_var(_x));
15 int test2() { return ({L:5;}); }
16 int test3() { return ({ {5;} }); } // expected-error {{incompatible type returning 'void', expected 'int'}}\
17 // expected-warning {{expression result unused}}
18 int test4() { return ({ ({5;}); }); }
19 int test5() { return ({L1: L2: L3: 5;}); }
20 int test6() { return ({5;}); }
21 void test7() { ({5;}); } // expected-warning {{expression result unused}}
24 int test8[({10;})]; // expected-error {{statement expression not allowed at file scope}}
27 void test9(const void *P) {
28 __builtin_prefetch(P);