xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/compound.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 < %s -emit-llvm
2 int A;
3 long long B;
4 int C;
5 int *P;
test1()6 void test1() {
7   C = (A /= B);
8 
9   P -= 4;
10 
11   C = P - (P+10);
12 }
13 
14 short x;
test2(char c)15 void test2(char c) { x += c; }
16 
foo(char * strbuf)17 void foo(char *strbuf) {
18   int stufflen = 4;
19   strbuf += stufflen;
20 }
21 
22 
23 // Aggregate cast to void
f(union uu p)24 union uu { int a;}; void f(union uu p) { (void) p;}
25 
26