Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -emit-llvm -x c++ < %s |
2 | |||||
3 | void test0(int x) { | ||||
4 | if (x != 0) return; | ||||
5 | } | ||||
6 | |||||
7 | |||||
8 | // PR5211 | ||||
9 | void test1() { | ||||
10 | char *xpto; | ||||
11 | while ( true && xpto[0] ); | ||||
12 | } | ||||
13 | |||||
14 | // PR5514 | ||||
15 | int a; | ||||
16 | void test2() { ++a+=10; } |