aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/compound.c
blob: 09095656316293a4114f68279374eea844a4c67d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: clang %s -emit-llvm
int A;
long long B;
int C;
int *P;
void test1() {
  C = (A /= B);

  P -= 4;

  C = P - (P+10);
}

short x; 
void test2(char c) { x += c; }

void foo(char *strbuf) {
  int stufflen = 4;
  strbuf += stufflen;
}