15 lines · plain
1// RUN: rm -rf %t && mkdir -p %t2// RUN: %clang -c -o %t/EmptyClassFoo.o %S/Inputs/EmptyClassFoo.m3// RUN: ar r %t/libFooClass.a %t/EmptyClassFoo.o4// RUN: %clang -c -o %t/force-objc.o %s5// RUN: %llvm_jitlink -ObjC %t/force-objc.o -L%t -lFooClass6//7// REQUIRES: system-darwin && host-arch-compatible8 9id objc_getClass(const char *name);10 11int main(int argc, char *argv[]) {12 // Return succeess if we find Foo, error otherwise.13 return objc_getClass("Foo") ? 0 : 1;14}15