MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail_typeof.d
bloba3b4d1a1415388fed58624d5a938596479781e69
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/fail_typeof.d(15): Error: undefined identifier `this`
4 fail_compilation/fail_typeof.d(20): Error: `this` is not in a class or struct scope
5 fail_compilation/fail_typeof.d(25): Error: undefined identifier `super`
6 fail_compilation/fail_typeof.d(30): Error: `super` is not in a class scope
7 fail_compilation/fail_typeof.d(37): Error: undefined identifier `this`, did you mean `typeof(this)`?
8 fail_compilation/fail_typeof.d(47): Error: undefined identifier `super`
9 fail_compilation/fail_typeof.d(52): Error: `super` is not in a class scope
10 fail_compilation/fail_typeof.d(60): Error: undefined identifier `this`, did you mean `typeof(this)`?
11 fail_compilation/fail_typeof.d(70): Error: undefined identifier `super`, did you mean `typeof(super)`?
12 ---
15 enum E1 : this
17 fail,
20 enum E2 : typeof(this)
22 fail,
25 enum E3 : super
27 fail,
30 enum E4 : typeof(super)
32 fail,
35 struct S1
37 enum E1 : this
39 fail,
42 enum E2 : typeof(this)
44 ok = S1(),
47 enum E3 : super
49 fail,
52 enum E4 : typeof(super)
54 fail,
58 class C1
60 enum E1 : this
62 fail,
65 enum E2 : typeof(this)
67 ok = new C1,
70 enum E3 : super
72 fail,
75 enum E4 : typeof(super)
77 ok = new C1,