opnsense-src/test/CodeGenCXX/expr.cpp

17 lines
211 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm -x c++ < %s
2009-06-02 13:58:47 -04:00
2009-10-23 10:22:18 -04:00
void test0(int x) {
2009-06-02 13:58:47 -04:00
if (x != 0) return;
}
2009-10-23 10:22:18 -04:00
// PR5211
void test1() {
char *xpto;
while ( true && xpto[0] );
}
2010-01-15 10:39:40 -05:00
// PR5514
int a;
void test2() { ++a+=10; }