[cfe-commits] r44416 - /cfe/trunk/test/Serialization/stmt_exprs.c

Ted Kremenek kremenek at apple.com
Wed Nov 28 13:29:54 PST 2007


Author: kremenek
Date: Wed Nov 28 15:29:54 2007
New Revision: 44416

URL: http://llvm.org/viewvc/llvm-project?rev=44416&view=rev
Log:
Inlined test case to make it independent of the stmt_exprs test case in test/Sema.

Modified:
    cfe/trunk/test/Serialization/stmt_exprs.c

Modified: cfe/trunk/test/Serialization/stmt_exprs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Serialization/stmt_exprs.c?rev=44416&r1=44415&r2=44416&view=diff

==============================================================================
--- cfe/trunk/test/Serialization/stmt_exprs.c (original)
+++ cfe/trunk/test/Serialization/stmt_exprs.c Wed Nov 28 15:29:54 2007
@@ -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





More information about the cfe-commits mailing list