]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/interpret5.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / interpret5.d
1 // https://issues.dlang.org/show_bug.cgi?id=21927
2 /*
3 TEST_OUTPUT:
4 ---
5 T1(Args...)
6 T1!()
7 T2(Args2...)
8 T2!()
9 this.T2(Args2...)
10 this.T2!()
11 ---
12 */
13 template T1(Args...) {}
14
15 pragma(msg, T1); // TOK.template_
16 pragma(msg, T1!()); // TOK.scope_
17
18 struct S
19 {
20 template T2(Args2...) {}
21
22 pragma(msg, S.T2); // TOK.template_
23 pragma(msg, S.T2!()); // TOK.scope_
24
25 void fun()
26 {
27 pragma(msg, this.T2); // TOK.dotTemplateDeclaration
28 pragma(msg, this.T2!()); // TOK.dot
29 }
30 }