[cfe-commits] r69424 - in /cfe/trunk/test/Sema: statements.c stmt_exprs.c

Chris Lattner sabre at nondot.org
Fri Apr 17 23:49:48 PDT 2009


Author: lattner
Date: Sat Apr 18 01:49:47 2009
New Revision: 69424

URL: http://llvm.org/viewvc/llvm-project?rev=69424&view=rev
Log:
rename test

Added:
    cfe/trunk/test/Sema/statements.c
      - copied unchanged from r69421, cfe/trunk/test/Sema/stmt_exprs.c
Removed:
    cfe/trunk/test/Sema/stmt_exprs.c

Removed: cfe/trunk/test/Sema/stmt_exprs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/stmt_exprs.c?rev=69423&view=auto

==============================================================================
--- cfe/trunk/test/Sema/stmt_exprs.c (original)
+++ cfe/trunk/test/Sema/stmt_exprs.c (removed)
@@ -1,24 +0,0 @@
-// RUN: clang-cc %s -fsyntax-only -verify
-
-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));
-}
-
-// PR2374
-int test2() { return ({L:5;}); }
-int test3() { return ({ {5;} }); }         // expected-error {{incompatible type returning 'void', expected 'int'}}\
-                                           // expected-warning {{expression result unused}}
-int test4() { return ({ ({5;}); }); }
-int test5() { return ({L1: L2: L3: 5;}); }
-int test6() { return ({5;}); }
-void test7() { ({5;}); }                   // expected-warning {{expression result unused}}
-
-// PR3062
-int x[({10;})]; // expected-error {{statement expression not allowed at file scope}}





More information about the cfe-commits mailing list