Clang Project

clang_source_code/test/CodeGenObjC/object-incr-decr-1.m
1// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o %t
2
3@interface Foo 
4{
5 double d1,d3,d4;
6}
7@end
8
9Foo* foo()
10{
11  Foo *f;
12  
13  // Both of these crash clang nicely
14  ++f;
15  --f;
16 f--;
17 f++;
18 return f;
19}
20