summaryrefslogtreecommitdiff
path: root/test/CodeGen/compound.c
blob: 960b2e8b04b8ffb3da082a12c7902dcebc2b0dfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// RUN: %clang_cc1 < %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;
}


// Aggregate cast to void
union uu { int a;}; void f(union uu p) { (void) p;}