February 15, 2023 Issues » [Issue 23712] New: compilable/testcstuff1.c:98:1: error: static assertion failed: sizeof(9223372036854775808) == 8 | |||
|---|---|---|---|
| |||
...ok"
98 | _Static_assert(sizeof(9223372036854775808) == 8, "ok");
| ^~~~~~~~~~~~~~
Original test:
```
_Static_assert(sizeof(9223372036854775808) == 8... | |||
February 15, 2023 Issues » [Issue 23700] compilable/test22842.c:64:24: error: expression in static assertion is not constant | |||
|---|---|---|---|
| |||
...Buclaw <ibuclaw@gdcproject.org> --- Many more _Static_assert tests that fail with gcc, but pass... | |||
February 15, 2023 Issues » [Issue 23711] New: compilable/testcstuff1.c:63:1: error: invalid use of 'restrict' | |||
|---|---|---|---|
| |||
...assert(sizeof(const restrict volatile char volatile restrict
const) == 1, "ok");
| ^~~~~~~~~~~~~~
Test content:
```
_Static_assert... | |||
February 14, 2023 Issues » [Issue 14482] [SPEC] Goto's into catch blocks should be an error | |||
|---|---|---|---|
| |||
...EH region
try {
a += 2;
}
catch (Exception) {
a += 3;
L2: ;
a += 100;
}
assert(a == 100);
}
```
-- | |||
February 13, 2023 Learn » Re: Simplest way to convert an array into a set | |||
|---|---|---|---|
| |||
...false;
seen[e] = unit;
return true;
});
}
unittest {
assert([ 1, 2, 3, 4, 2, 5, 6... | |||
February 13, 2023 Issues » [Issue 14482] [SPEC] Goto's into catch blocks should be an error | |||
|---|---|---|---|
| |||
...Exception e) {
a += 3;
L2: ;
a += 100;
}
assert(a == 100);
}
fails to compiler, so I... | |||
February 12, 2023 Genel » MyString: Dizge Sarması | |||
|---|---|---|---|
| |||
...Merhaba sana string str = cast(string)merhaba; assert(str == merhaba.data); // -test-ok- } alias MS... | |||
February 12, 2023 Issues » [Issue 23700] compilable/test22842.c:64:24: error: expression in static assertion is not constant | |||
|---|---|---|---|
| |||
...Static_assert(sizeof("\x1") == 2, "1");
_Static_assert(sizeof("\x20") == 2, "2");
_Static_assert(sizeof... | |||
February 12, 2023 Issues » [Issue 23700] New: compilable/test22842.c:64:24: error: expression in static assertion is not constant | |||
|---|---|---|---|
| |||
...static assertion is not
constant
64 | _Static_assert(mint1() == -1, "1");
| ~~~~~~~~^~~~~
compilable/test22842.c: In... | |||
February 12, 2023 Issues » [Issue 23696] New: compilable/enumbase.c:3:8: error: expected identifier or ‘(’ before ‘:’ token | |||
|---|---|---|---|
| |||
...A = 3, B }; _Static_assert(sizeof(enum E) == 1, "1"); _Static_assert(A == 3, "2... | |||
Copyright © 1999-2021 by the D Language Foundation