]>
Commit | Line | Data |
---|---|---|
13ba007e A |
1 | // fixme rdar://24624435 duplicate class warning fails with the shared cache |
2 | // OBJC_DISABLE_PREOPTIMIZATION=YES works around that problem. | |
3 | ||
4 | // TEST_ENV OBJC_DEBUG_DUPLICATE_CLASSES=YES OBJC_DISABLE_PREOPTIMIZATION=YES | |
5 | // TEST_CRASHES | |
6 | /* | |
7 | TEST_RUN_OUTPUT | |
8 | objc\[\d+\]: Class [^\s]+ is implemented in both .+ \(0x[0-9a-f]+\) and .+ \(0x[0-9a-f]+\)\. One of the two will be used\. Which one is undefined\. | |
9 | objc\[\d+\]: HALTED | |
10 | OR | |
11 | OK: duplicatedClasses.m | |
12 | END | |
13 | */ | |
14 | ||
15 | #include "test.h" | |
16 | #include "testroot.i" | |
17 | ||
18 | @interface WKWebView : TestRoot @end | |
19 | @implementation WKWebView @end | |
20 | ||
21 | int main() | |
22 | { | |
23 | void *dl = dlopen("/System/Library/Frameworks/WebKit.framework/WebKit", RTLD_LAZY); | |
24 | if (!dl) fail("couldn't open WebKit"); | |
25 | fail("should have crashed already"); | |
26 | } |