1 // gc-off app loading gc-required dylib: should crash
2 // linker sees librequiresgc.fake.dylib, runtime uses librequiresgc.dylib
5 fixme disabled in BATS because of gcfiles
6 TEST_CONFIG OS=macosx BATS=0
10 dyld: Library not loaded: librequiresgc\.dylib
11 Referenced from: .*gcenforcer-dylib-requiresgc.exe
12 Reason: no suitable image found\. Did find:
13 (.*librequiresgc\.dylib: cannot load '.*librequiresgc\.dylib' because Objective-C garbage collection is not supported(\n)?)+
14 librequiresgc.dylib: cannot load 'librequiresgc\.dylib' because Objective-C garbage collection is not supported(
15 .*librequiresgc\.dylib: cannot load '.*librequiresgc\.dylib' because Objective-C garbage collection is not supported(\n)?)*
19 cp $DIR/gcfiles/librequiresgc.dylib .
20 $C{COMPILE} $DIR/gc-main.m -x none $DIR/gcfiles/librequiresgc.fake.dylib -o gcenforcer-dylib-requiresgc.exe