mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
25 lines
305 B
C
25 lines
305 B
C
// https://issues.dlang.org/show_bug.cgi?id=24264
|
|
|
|
struct S
|
|
{
|
|
int small;
|
|
int symbol;
|
|
};
|
|
|
|
inline int getSym(struct S self)
|
|
{
|
|
return self.symbol;
|
|
}
|
|
|
|
_Bool
|
|
symIs0(struct S self)
|
|
{
|
|
return getSym(self) == 0;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
struct S s = {0, 0};
|
|
__check(symIs0(s));
|
|
return 0;
|
|
}
|