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
c++: Add [dcl.init.aggr] examples to testsuite
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail73.d
blob
d9dd8a37fee7ee63b1f2951aeb76a51f9762bf5f
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail73.d(20): Error: `case` not in `switch` statement
5
---
6
*/
7
8
// segfault DMD 0.120
9
// https://www.digitalmars.com/d/archives/digitalmars/D/bugs/4634.html
10
11
void
main
()
12
{
13
int
u
=
2
;
14
15
switch
(
u
)
16
{
17
case
1
:
18
void
j
()
19
{
20
case
2
:
21
u
++;
22
}
23
break
;
24
25
default
:
26
break
;
27
}
28
}