]> git.saurik.com Git - apple/objc4.git/blame - test/duplicatedClasses.m
objc4-818.2.tar.gz
[apple/objc4.git] / test / duplicatedClasses.m
CommitLineData
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/*
7TEST_RUN_OUTPUT
8objc\[\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\.
9objc\[\d+\]: HALTED
10OR
11OK: duplicatedClasses.m
12END
13 */
14
15#include "test.h"
16#include "testroot.i"
17
18@interface WKWebView : TestRoot @end
19@implementation WKWebView @end
20
21int 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}