MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / testscopestatic.d
blobcc7b0125953f1a1607d353963755d9c7ee8e5f0a
2 /* TEST_OUTPUT:
3 ---
4 fail_compilation/testscopestatic.d(15): Error: variable `testscopestatic.foo.p` cannot be `scope` and `static`
5 fail_compilation/testscopestatic.d(16): Error: variable `testscopestatic.foo.b` cannot be `scope` and `extern`
6 fail_compilation/testscopestatic.d(17): Error: variable `testscopestatic.foo.c` cannot be `scope` and `__gshared`
7 fail_compilation/testscopestatic.d(21): Error: field `x` cannot be `scope`
8 ---
9 */
12 void foo()
14 scope int a;
15 static scope int* p;
16 extern scope int b;
17 scope __gshared int c;
19 struct S
21 scope int x;