mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
14 lines
327 B
D
14 lines
327 B
D
// EXTRA_OBJC_SOURCES:
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/objc_class1.d(13): Error: function `objc_class1.A.oneTwo` must have Objective-C linkage to attach a selector
|
|
---
|
|
*/
|
|
|
|
import core.attribute : selector;
|
|
|
|
class A
|
|
{
|
|
void oneTwo(int a, int b) @selector("one:two:"); // selector attached in non-Objective-C interface
|
|
}
|