File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-clang %s -isysroot %sdk -L%swift_obj_root/lib/swift/%target-sdk-name -lswiftCore -o %t/objc-getclass
2
+ // RUN: %target-clang %s -isysroot %sdk -L%swift_obj_root/lib/swift/%target-sdk-name -lswiftCore -lobjc - o %t/objc-getclass
3
3
// RUN: %target-codesign %t/objc-getclass
4
4
// RUN: %target-run %t/objc-getclass %S/Inputs/objc-getclass.txt
5
5
@@ -34,8 +34,8 @@ int main(int argc, char **argv) {
34
34
objc_setHook_getClass (dummyHook, &getObjCClassByMangledName);
35
35
objc_setHook_getClass (getObjCClassByMangledName, &dummy);
36
36
} else {
37
- fprintf (stderr, " objc-getclass: macOS version is too old\n " );
38
- return 1 ;
37
+ fprintf (stderr, " objc-getclass: OS version is too old\n " );
38
+ return 0 ;
39
39
}
40
40
41
41
// Open the input file
You can’t perform that action at this time.
0 commit comments