]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/compilable/fix21647.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / fix21647.d
CommitLineData
5a0aa603 1/*
5fee5ec3 2REQUIRED_ARGS: -preview=rvaluerefparam
5a0aa603
IB
3TEST_OUTPUT:
4---
5cast(void)0
6cast(void)0
7void
8cast(void)0
9cast(void)0
10cast(void)0
11void
12---
13*/
14
15
16// https://issues.dlang.org/show_bug.cgi?id=21647
17
18void foo() { return cast(void)1; }
19
20void main(){}
21
22alias V = void;
23
24void test1() { pragma(msg, foo()); }
25void test2() { pragma(msg, main()); }
26void test3() { pragma(msg, V); }
27
28pragma(msg, foo());
29pragma(msg, main());
30pragma(msg, V);
5fee5ec3
IB
31
32/*************************************************************/
33// https://issues.dlang.org/show_bug.cgi?id=8255
34
35struct G {}
36struct F(T) { void f(ref T) {} }
37pragma(msg, F!G().f(G.init));
38