]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/diag6677.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag6677.d
1 // REQUIRED_ARGS:
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/diag6677.d(18): Error: static constructor cannot be `const`
6 fail_compilation/diag6677.d(19): Error: static constructor cannot be `inout`
7 fail_compilation/diag6677.d(20): Error: static constructor cannot be `immutable`
8 fail_compilation/diag6677.d(21): Error: use `shared static this()` to declare a shared static constructor
9 fail_compilation/diag6677.d(22): Error: use `shared static this()` to declare a shared static constructor
10 fail_compilation/diag6677.d(24): Error: shared static constructor cannot be `const`
11 fail_compilation/diag6677.d(25): Error: shared static constructor cannot be `inout`
12 fail_compilation/diag6677.d(26): Error: shared static constructor cannot be `immutable`
13 fail_compilation/diag6677.d(27): Error: redundant attribute `shared`
14 fail_compilation/diag6677.d(28): Error: redundant attribute `shared`
15 ---
16 */
17
18 static this() const { }
19 static this() inout { }
20 static this() immutable { }
21 static this() shared { }
22 static this() const shared { }
23
24 shared static this() const { }
25 shared static this() inout { }
26 shared static this() immutable { }
27 shared static this() shared { }
28 shared static this() const shared { }