Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Rewriter / rewrite-vararg.m
blob58791bbb4761a801ac4b87cc8d2f149d250da97c
1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
4 void *sel_registerName(const char *);
6 @interface NSObject @end
7 @class NSString;
9 @protocol P
10   -(void)ParliamentFunkadelic;
11 @end
12         
13 @interface Foo {
14   NSObject <P> *_dataSource;
16 @end
17         
18 @interface Bar { }
19 +(void)WhateverBar:(NSString*)format, ...;
20 @end
21         
22 @implementation Foo
23 -(void)WhateverFoo {
24         [Bar WhateverBar:@"ISyncSessionDriverDataSource %@ responded poorly", _dataSource];
26 @end