| 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 | |
| 9 | Foo* 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 |