test174
immutable
@TargetOs.linux
auto test174 =
q{--- test174
// 2 Extern attributes
@extern(syscall, 60)
void exit();
// var attributes
@extern(syscall, 42)
u8 var;
// struct attribute
@extern(syscall, 1)
struct A {
// member var attribute
@extern(syscall, 2)
u8 var;
// member func attribute
@extern(syscall, 3)
void foo();
}
};
tests passing
functionsvariables