MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail22054.d
blob8b525d85fb2c2bc021e6028d43a75ea2820c440c
1 // https://issues.dlang.org/show_bug.cgi?id=22054
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail22054.d(23): Error: no property `what` for type `fail22054.exception`
7 fail_compilation/fail22054.d(18): `class fail22054.exception` is opaque and has no members.
8 fail_compilation/fail22054.d(18): class `exception` defined here
9 fail_compilation/fail22054.d(24): Error: no property `what` for type `fail22054.exception2`
10 fail_compilation/fail22054.d(19): `struct fail22054.exception2` is opaque and has no members.
11 fail_compilation/fail22054.d(19): struct `exception2` defined here
12 ---
18 class exception;
19 struct exception2;
21 void main ()
23 assert(exception.what() == "Hello");
24 assert(exception2.what() == "Hello");