repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Allow coarrays in select type. [PR46371, PR56496]
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail17722a.d
blob
7e0b9114deea57376d08875cc85e2d63b55a04b1
1
/* TEST_OUTPUT:
2
---
3
fail_compilation/fail17722a.d(12): Error: static assert: `__traits(compiles, a1 && a2)` is false
4
---
5
*/
6
7
// https://issues.dlang.org/show_bug.cgi?id=17722
8
9
void
fail17722a
()
10
{
11
byte
[
16
]
a1
,
a2
;
12
static assert
(
__traits
(
compiles
,
a1
&&
a2
));
// diagnostic was (__error) && (__error)
13
}