diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-11-28 21:29:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-11-28 21:29:54 +0000 |
commit | 251f7325b38d3412ac4681edb9f34408f59d3424 (patch) | |
tree | ea95771f415fa33994afdbf744b6914a3cd546f5 | |
parent | efb71539a749649edfc5f581736404d6102620ad (diff) |
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
-rw-r--r-- | test/Serialization/stmt_exprs.c | 12 |
1 files changed, 11 insertions, 1 deletions
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 |