blob: 3c82f78d08b5f1ac5e7b89da62953bd3e1cd0d69 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
Fariborz Jahanian3523d4f2009-03-10 18:03:11 +00002
3@interface Test { }
4+ (Test *)crash;
5+ (void)setCrash: (int)value;
6@end
7
8@implementation Test
9static int _value;
10- (void)cachesPath
11{
12 static Test *cachesPath;
13
14 if (!cachesPath) {
15 Test *crash = Test.crash;
16 }
17}
18+ (Test *)crash{ return 0; }
19+ (void)setCrash: (int)value{ _value = value; }
20@end
21