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
tree-core.h (omp_clause_code): Comments regarding range checks for OMP_CLAUSE_...
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag8044.d
blob
a8c767ae7a8c3c42aa1da490ca7642877e6db00c
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/diag8044.d(18): Error: template instance `diag8044.test!(Enum.Bar)` does not match template declaration `test(Enum en)()`
5
with `en = Bar`
6
must satisfy the following constraint:
7
` 0`
8
---
9
*/
10
enum
Enum
{
Foo
,
Bar
}
11
void
test
(
Enum en
)()
12
if
(
0
)
13
{
14
}
15
16
void
main
()
17
{
18
test
!(
Enum
.
Bar
)();
19
}