mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-22 21:15:40 -04:00

by respecting the "artificial" attribute on variables. Function arguments that are artificial and useful to end-users are being whitelisted by the language runtime. <rdar://problem/45322477> Differential Revision: https://reviews.llvm.org/D61451 llvm-svn: 359841
29 lines
439 B
Plaintext
29 lines
439 B
Plaintext
#import <Foundation/Foundation.h>
|
|
|
|
void baz() {}
|
|
|
|
struct MyClass {
|
|
void bar() {
|
|
baz(); // break here
|
|
}
|
|
};
|
|
|
|
@interface MyObject : NSObject {}
|
|
- (void)foo;
|
|
@end
|
|
|
|
@implementation MyObject
|
|
- (void)foo {
|
|
MyClass c;
|
|
c.bar(); // break here
|
|
}
|
|
@end
|
|
|
|
int main (int argc, char const *argv[]) {
|
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
|
id obj = [MyObject new];
|
|
[obj foo];
|
|
[pool release];
|
|
return 0;
|
|
}
|