summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/expr.cpp
blob: d92cfb46a45447d73cde0d6da8da7b1b130f1eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -emit-llvm -x c++ < %s

void test0(int x) {
          if (x != 0) return;
}


// PR5211
void test1() {
  char *xpto;
  while ( true && xpto[0] );
}

// PR5514
int a;
void test2() { ++a+=10; }
OpenPOWER on IntegriCloud