gcc/testsuite/gdc.test/fail_compilation/objc_class2.d
raw| 1 | // EXTRA_OBJC_SOURCES: |
| 2 | /* |
| 3 | TEST_OUTPUT: |
| 4 | --- |
| 5 | fail_compilation/objc_class2.d(14): Error: function `objc_class2.A.test` number of colons in Objective-C selector must match number of parameters |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | import core.attribute : selector; |
| 10 | |
| 11 | extern (Objective-C) |
| 12 | extern class A |
| 13 | { |
| 14 | void test(int a, int b, int c) @selector("test:"); // non-matching number of colon |
| 15 | } |