]> granicus.if.org Git - clang/commitdiff
Inlined test case to make it independent of the stmt_exprs test case in test/Sema.
authorTed Kremenek <kremenek@apple.com>
Wed, 28 Nov 2007 21:29:54 +0000 (21:29 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 28 Nov 2007 21:29:54 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44416 91177308-0d34-0410-b5e6-96231b3b80d8

test/Serialization/stmt_exprs.c

index c85cbd6f73e34f6058319d2209fea3d681a006b3..46aa69d046749f45ec29155f14911425e5dcfa38 100644 (file)
@@ -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