[analyzer] Refactoring: Drop the 'GR' prefix.
[clang.git] / test / Analysis / rdar-7168531.m
blob5a7b08584f57af6ba831e36a2eba5cc486679e0d
1 // RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -triple i386-apple-darwin10 -analyzer-store=region %s
2 // RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -triple i386-apple-darwin10 -analyzer-store=basic %s
4 // Note that the target triple is important for this test case.  It specifies that we use the
5 // fragile Objective-C ABI.
7 @interface Foo {
8   int x;
10 @end
12 @implementation Foo
13 static Foo* bar(Foo *p) {
14   if (p->x)
15    return ++p;  // This is only valid for the fragile ABI.
17   return p;
19 @end