1// RUN: %clang_cc1 -arcmt-migrate -mt-migrate-directory %t.dir -arcmt-migrate-report-output %t.plist %s 2// RUN: FileCheck %s -input-file=%t.plist 3// RUN: rm -rf %t.dir 4 5@protocol NSObject 6- (oneway void)release; 7@end 8 9void test(id p) { 10 [p release]; 11} 12 13// CHECK: <?xml version="1.0" encoding="UTF-8"?> 14// CHECK: <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 15// CHECK: <plist version="1.0"> 16// CHECK: <dict> 17// CHECK: <key>files</key> 18// CHECK: <array> 19// CHECK: </array> 20// CHECK: <key>diagnostics</key> 21// CHECK: <array> 22// CHECK: <dict> 23// CHECK: <key>description</key><string>ARC forbids explicit message send of 'release'</string> 24// CHECK: <key>category</key><string>ARC Restrictions</string> 25// CHECK: <key>type</key><string>error</string> 26// CHECK: <key>location</key> 27// CHECK: <dict> 28// CHECK: <key>line</key><integer>10</integer> 29// CHECK: <key>col</key><integer>6</integer> 30// CHECK: <key>file</key><integer>0</integer> 31// CHECK: </dict> 32// CHECK: <key>ranges</key> 33// CHECK: <array> 34// CHECK: <array> 35// CHECK: <dict> 36// CHECK: <key>line</key><integer>10</integer> 37// CHECK: <key>col</key><integer>4</integer> 38// CHECK: <key>file</key><integer>0</integer> 39// CHECK: </dict> 40// CHECK: <dict> 41// CHECK: <key>line</key><integer>10</integer> 42// CHECK: <key>col</key><integer>4</integer> 43// CHECK: <key>file</key><integer>0</integer> 44// CHECK: </dict> 45// CHECK: </array> 46// CHECK: </array> 47// CHECK: </dict> 48// CHECK: </array> 49// CHECK: </dict> 50// CHECK: </plist> 51 52