Debian Codegraph @

gcc/testsuite/gdc.test/compilable/ddoc6.d

raw
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
3 // POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh
4
5 /**
6 *
7 */
8 struct MyStruct(T)
9 {
10 static if( true )
11 {
12 void MyStruct() {}
13 }
14 }
15
16 void main()
17 {
18 }
19
20 /+
21 23
22 C:\code\d\bugs>dmd -D -o- 148_1.d
23 148_1.d(6): Error: static if conditional cannot be at global scope
24 +/