expr.cpp revision aa4aa00ba7489742cf688c1e33fc077035c51f53
1// RUN: %clang_cc1 -emit-llvm -x c++ < %s 2 3void test0(int x) { 4 if (x != 0) return; 5} 6 7 8// PR5211 9void test1() { 10 char *xpto; 11 while ( true && xpto[0] ); 12} 13 14// PR5514 15int a; 16void test2() { ++a+=10; } 17 18// PR7892 19int test3(const char*); 20int test3g = test3(__PRETTY_FUNCTION__); 21 22 23// PR7889 24struct test4A { 25 int j : 2; 26}; 27int test4() { 28 test4A a; 29 (a.j = 2) = 3; 30} 31