mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
17 lines
288 B
C
17 lines
288 B
C
/* https://issues.dlang.org/show_bug.cgi?id=23038
|
|
*/
|
|
|
|
char a;
|
|
struct S
|
|
{
|
|
long long a;
|
|
char b[sizeof(a)];
|
|
//typeof(a) c;
|
|
} s;
|
|
_Static_assert(sizeof(s.b) == sizeof(char), "1");
|
|
//_Static_assert(sizeof(s.c) == sizeof(char), "2");
|
|
|
|
long long test(struct S t)
|
|
{
|
|
return t.a;
|
|
}
|