From 5d169cf2857691aedf6d756ce732e6412781e5e9 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 28 Nov 2007 21:29:54 +0000 Subject: [PATCH] Inlined test case to make it independent of the stmt_exprs test case in test/Sema. llvm-svn: 44416 --- clang/test/Serialization/stmt_exprs.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/clang/test/Serialization/stmt_exprs.c b/clang/test/Serialization/stmt_exprs.c index c85cbd6f73e3..46aa69d04674 100644 --- a/clang/test/Serialization/stmt_exprs.c +++ b/clang/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