1// TEST_ENV OBJC_DEBUG_DUPLICATE_CLASSES=YES 2// TEST_CRASHES 3/* 4TEST_RUN_OUTPUT 5objc\[\d+\]: Class GKScore is implemented in both [^\s]+ and [^\s]+ One of the two will be used. Which one is undefined. 6CRASHED: SIG(ILL|TRAP) 7END 8 */ 9 10#include "test.h" 11#include "testroot.i" 12 13@interface GKScore : TestRoot @end 14@implementation GKScore @end 15 16int main() 17{ 18 void *dl = dlopen("/System/Library/Frameworks/GameKit.framework/GameKit", RTLD_LAZY); 19 if (!dl) fail("couldn't open GameKit"); 20 fail("should have crashed already"); 21} 22