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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail17722b.d
blob
171c49fc5008de08ab26624237f2ccad79a79e3b
1
/* TEST_OUTPUT:
2
---
3
fail_compilation/fail17722b.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
fail17722b
()
10
{
11
byte
[
16
]
a1
,
a2
;
12
static assert
(
__traits
(
compiles
,
a1 || a2
));
// diagnostic was (__error) || (__error)
13
}