Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gdc.test/fail_compilation/fail150.d @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
145 | 1 /* |
2 TEST_OUTPUT: | |
3 --- | |
4 fail_compilation/fail150.d(22): Error: e.new is only for allocating nested classes | |
5 --- | |
6 */ | |
7 | |
8 //import std.stdio; | |
9 | |
10 class Class1 | |
11 { | |
12 } | |
13 | |
14 class Foo | |
15 { | |
16 } | |
17 | |
18 int main(char[][] argv) | |
19 { | |
20 Class1 myclass = new Class1; | |
21 | |
22 myclass.new Foo(); | |
23 return 0; | |
24 } |