From: Ted Kremenek Date: Wed, 28 Nov 2007 21:29:54 +0000 (+0000) Subject: Inlined test case to make it independent of the stmt_exprs test case in test/Sema. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=251f7325b38d3412ac4681edb9f34408f59d3424;p=clang Inlined test case to make it independent of the stmt_exprs test case in test/Sema. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44416 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Serialization/stmt_exprs.c b/test/Serialization/stmt_exprs.c index c85cbd6f73..46aa69d046 100644 --- a/test/Serialization/stmt_exprs.c +++ b/test/Serialization/stmt_exprs.c @@ -1,2 +1,12 @@ // RUN: clang %s --test-pickling 2>&1 | grep -q 'SUCCESS' -#include "../Sema/stmt_exprs.c" \ No newline at end of file + +typedef unsigned __uint32_t; + +#define __byte_swap_int_var(x) \ +__extension__ ({ register __uint32_t __X = (x); \ + __asm ("bswap %0" : "+r" (__X)); \ + __X; }) + +int test(int _x) { + return (__byte_swap_int_var(_x)); +} \ No newline at end of file