blob: d92cfb46a45447d73cde0d6da8da7b1b130f1eed [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm -x c++ < %s
Nuno Lopes32f62092009-01-11 23:22:37 +00002
Chris Lattner7804bcb2009-10-17 04:24:20 +00003void test0(int x) {
Nuno Lopes32f62092009-01-11 23:22:37 +00004 if (x != 0) return;
5}
Chris Lattner7804bcb2009-10-17 04:24:20 +00006
7
8// PR5211
9void test1() {
10 char *xpto;
11 while ( true && xpto[0] );
12}
Chris Lattner197a3382010-01-09 21:44:40 +000013
14// PR5514
15int a;
16void test2() { ++a+=10; }