Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gdc.test/fail_compilation/diag14876.d @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* TEST_OUTPUT: --- fail_compilation/diag14876.d(17): Deprecation: class diag14876.Dep is deprecated fail_compilation/diag14876.d(18): Deprecation: class diag14876.Dep is deprecated fail_compilation/diag14876.d(19): Deprecation: class diag14876.Dep is deprecated fail_compilation/diag14876.d(20): Deprecation: class diag14876.Dep is deprecated fail_compilation/diag14876.d(21): Deprecation: class diag14876.Dep is deprecated fail_compilation/diag14876.d(22): Deprecation: class diag14876.Dep is deprecated fail_compilation/diag14876.d(23): Deprecation: class diag14876.Dep is deprecated fail_compilation/diag14876.d(23): Error: can only slice tuple types, not diag14876.Dep --- */ deprecated class Dep { class Mem {} } alias X1 = Foo!(Dep[]); alias X2 = Foo!(Dep[1]); alias X3 = Foo!(Dep[int]); alias X4 = Foo!(int[Dep]); alias X5 = Foo!(Dep*); alias X6 = Foo!(Dep.Mem); alias X7 = Foo!(Dep[3..4]); template Foo(T) {}