]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/fail225.d
d: Synchronize testsuite with upstream dmd
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail225.d
CommitLineData
7da827c9
IB
1/*
2TEST_OUTPUT:
3---
4fail_compilation/fail225.d(15): Error: cannot implicitly convert expression `1` of type `int` to `immutable(char*)`
5fail_compilation/fail225.d(15): Error: cannot implicitly convert expression `& ch` of type `char*` to `immutable(char*)`
6---
7*/
b4c522fa
IB
8struct Struct {
9 char* chptr;
10}
11
12void main()
13{
14 char ch = 'd';
15 immutable Struct iStruct = {1, &ch};
16}
17