Fix the clang-wpa example.
[clang.git] / test / CodeGenCXX / expr.cpp
blob33e8e63de2f4a52382ef30c49f2f558fa45fc234
1 // RUN: %clang_cc1 -emit-llvm -x c++ < %s
3 void test0(int x) {
4 if (x != 0) return;
8 // PR5211
9 void test1() {
10 char *xpto;
11 while ( true && xpto[0] );
14 // PR5514
15 int a;
16 void test2() { ++a+=10; }
18 // PR7892
19 int test3(const char*);
20 int test3g = test3(__PRETTY_FUNCTION__);
23 // PR7889
24 struct test4A {
25 int j : 2;
27 int test4() {
28 test4A a;
29 (a.j = 2) = 3;
32 // Incomplete type in conditional operator.
33 // Check operations on incomplete types.
34 struct s5;
35 struct s5 &f5_0(bool cond, struct s5 &a, struct s5 &b) {
36 return cond ? a : b;