diff options
Diffstat (limited to 'clang/test/CodeGen/exprs.c')
-rw-r--r-- | clang/test/CodeGen/exprs.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/clang/test/CodeGen/exprs.c b/clang/test/CodeGen/exprs.c index c9978b85164..452c823d15f 100644 --- a/clang/test/CodeGen/exprs.c +++ b/clang/test/CodeGen/exprs.c @@ -147,8 +147,22 @@ double f13(double X) { } // Check operations on incomplete types. -struct s14; -void f14(struct s13 *a) { +void f14(struct s14 *a) { (void) &*a; } +// CHECK: define void @f15 +void f15(void *v, const void *cv, volatile void *vv) { + extern void f15_helper(void); + f15_helper(); + // CHECK: call void @f15_helper() + // FIXME: no loads from i8* should occur here at all! + *v; *v, *v; v ? *v : *v; + *cv; *cv, *cv; v ? *cv : *cv; + *vv; *vv, *vv; vv ? *vv : *vv; + // CHECK: volatile load i8* + // CHECK: volatile load i8* + // CHECK: volatile load i8* + // CHECK-NOT: load i8* % + // CHECK: ret void +} |