MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test4946.d
blobe19932b03715222e8591001b23aa268b92e97371
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test4946.d(13): Error: 'pure' cannot be placed after a template constraint
4 fail_compilation/test4946.d(14): Error: 'const' cannot be placed after a template constraint
5 fail_compilation/test4946.d(15): Error: 'immutable' cannot be placed after a template constraint
6 fail_compilation/test4946.d(16): Error: 'inout' cannot be placed after a template constraint
7 fail_compilation/test4946.d(17): Error: 'shared' cannot be placed after a template constraint
8 fail_compilation/test4946.d(18): Error: 'nothrow' cannot be placed after a template constraint
9 fail_compilation/test4946.d(19): Error: attributes cannot be placed after a template constraint
10 ---
13 void bar1(int x)() if (x > 0) pure { int a;}
14 void bar2(int x)() if (x > 0) const { int a;}
15 void bar3(int x)() if (x > 0) immutable { int a;}
16 void bar4(int x)() if (x > 0) inout { int a;}
17 void bar5(int x)() if (x > 0) shared { int a;}
18 void bar6(int x)() if (x > 0) nothrow { int a;}
19 void bar7(int x)() if (x > 0) @safe { int a;}