2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 < %s -emit-llvm
|
2007-08-25 05:00:35 +08:00
|
|
|
int A;
|
|
|
|
long long B;
|
|
|
|
int C;
|
|
|
|
int *P;
|
2007-08-26 05:57:08 +08:00
|
|
|
void test1() {
|
2007-08-25 05:00:35 +08:00
|
|
|
C = (A /= B);
|
|
|
|
|
|
|
|
P -= 4;
|
|
|
|
|
|
|
|
C = P - (P+10);
|
|
|
|
}
|
|
|
|
|
2007-08-26 05:57:08 +08:00
|
|
|
short x;
|
|
|
|
void test2(char c) { x += c; }
|
2007-08-25 05:00:35 +08:00
|
|
|
|
2007-10-26 06:19:13 +08:00
|
|
|
void foo(char *strbuf) {
|
|
|
|
int stufflen = 4;
|
|
|
|
strbuf += stufflen;
|
|
|
|
}
|
2008-02-17 07:55:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
// Aggregate cast to void
|
|
|
|
union uu { int a;}; void f(union uu p) { (void) p;}
|
|
|
|
|