]> git.saurik.com Git - apple/objc4.git/blob - test/duplicatedClasses.m
objc4-647.tar.gz
[apple/objc4.git] / test / duplicatedClasses.m
1 // TEST_ENV OBJC_DEBUG_DUPLICATE_CLASSES=YES
2 // TEST_CRASHES
3 /*
4 TEST_RUN_OUTPUT
5 objc\[\d+\]: Class GKScore is implemented in both [^\s]+ and [^\s]+ One of the two will be used. Which one is undefined.
6 CRASHED: SIG(ILL|TRAP)
7 END
8 */
9
10 #include "test.h"
11 #include "testroot.i"
12
13 @interface GKScore : TestRoot @end
14 @implementation GKScore @end
15
16 int 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 }