blob: c8afceef7600e4bf0e12eb6d2e4cf1eb054f7f3f [file] [log] [blame]
Chris Lattner19a1d7c2008-02-16 23:55:16 +00001// RUN: clang < %s -emit-llvm
Chris Lattner1f1ded92007-08-24 21:00:35 +00002int A;
3long long B;
4int C;
5int *P;
Chris Lattner9c62c1d2007-08-25 21:57:08 +00006void test1() {
Chris Lattner1f1ded92007-08-24 21:00:35 +00007 C = (A /= B);
8
9 P -= 4;
10
11 C = P - (P+10);
12}
13
Chris Lattner9c62c1d2007-08-25 21:57:08 +000014short x;
15void test2(char c) { x += c; }
Chris Lattner1f1ded92007-08-24 21:00:35 +000016
Devang Patelf86206f2007-10-25 22:19:13 +000017void foo(char *strbuf) {
18 int stufflen = 4;
19 strbuf += stufflen;
20}
Chris Lattner19a1d7c2008-02-16 23:55:16 +000021
22
23// Aggregate cast to void
24union uu { int a;}; void f(union uu p) { (void) p;}
25