Home | History | Annotate | Download | only in ARCMT
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c++ %s.result
      2 // RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c++ %s > %t
      3 // RUN: diff %t %s.result
      4 // DISABLE: mingw32
      5 
      6 #include "Common.h"
      7 
      8 @interface NSString : NSObject
      9 +(id)string;
     10 @end
     11 
     12 struct foo {
     13     NSString *s;
     14     foo(NSString *s): s(s){
     15         @autoreleasepool {
     16             [NSString string];
     17         }
     18     }
     19     ~foo(){  }
     20 private:
     21     foo(foo const &);
     22     foo &operator=(foo const &);
     23 };
     24 
     25 int main(){
     26     @autoreleasepool {
     27 
     28         foo f([NSString string]);
     29 
     30     }
     31     return 0;
     32 }
     33