xref: /llvm-project/clang/test/CodeGen/compound.c (revision ed509fe296375eb7c01d3d9aeec15cc784695210)
1 // RUN: %clang_cc1 < %s -emit-llvm
2 int A;
3 long long B;
4 int C;
5 int *P;
test1(void)6 void test1(void) {
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