Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm -x c++ < %s |
Nuno Lopes | 32f6209 | 2009-01-11 23:22:37 +0000 | [diff] [blame] | 2 | |
Chris Lattner | 7804bcb | 2009-10-17 04:24:20 +0000 | [diff] [blame] | 3 | void test0(int x) { |
Nuno Lopes | 32f6209 | 2009-01-11 23:22:37 +0000 | [diff] [blame] | 4 | if (x != 0) return; |
5 | } | ||||
Chris Lattner | 7804bcb | 2009-10-17 04:24:20 +0000 | [diff] [blame] | 6 | |
7 | |||||
8 | // PR5211 | ||||
9 | void test1() { | ||||
10 | char *xpto; | ||||
11 | while ( true && xpto[0] ); | ||||
12 | } |