dmd/compiler/test/fail_compilation/objc_offsetof.d
2022-07-09 18:53:07 +02:00

13 lines
371 B
D

// EXTRA_OBJC_SOURCES:
/* TEST_OUTPUT:
---
fail_compilation/objc_offsetof.d(13): Error: no property `offsetof` for member `a` of type `int`
fail_compilation/objc_offsetof.d(13): `offsetof` is not available for members of Objective-C classes. Please use the Objective-C runtime instead
---
*/
extern (Objective-C) class Foo
{
int a;
}
enum o = Foo.a.offsetof;