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