MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail20730a.d
blobdcf8960c62c2700be66d10e8cbf8aa885adfdeec
1 /*
2 REQUIRED_ARGS: -o-
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail20730a.d(11): Error: undefined identifier `undef20730`
6 ---
7 */
8 void test20730()
10 auto f = File().byLine;
11 undef20730();
14 struct File
16 shared uint refs;
18 this(this)
20 atomicOp!"+="(refs, 1);
23 struct ByLineImpl(Char)
25 File file;
26 char[] line;
29 auto byLine()
31 return ByLineImpl!char();
35 T atomicOp(string op, T, V1)(ref shared T val, V1 mod)
36 if (__traits(compiles, mixin("*cast(T*)&val" ~ op ~ "mod")))
38 return val;