llvm-project/clang/test/CodeGen/compound.c

26 lines
321 B
C
Raw Normal View History

// RUN: clang < %s -emit-llvm
int A;
long long B;
int C;
int *P;
2007-08-26 05:57:08 +08:00
void test1() {
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; }
void foo(char *strbuf) {
int stufflen = 4;
strbuf += stufflen;
}
// Aggregate cast to void
union uu { int a;}; void f(union uu p) { (void) p;}