]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.old-deja/g++.other/volatile1.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.old-deja / g++.other / volatile1.C
CommitLineData
6481daa9 1// { dg-do assemble }
db5ae31b
JM
2// Test that failed lvalue-to-rvalue conversion of vf doesn't crash the
3// compiler.
4
d4a2b486
JM
5class f_class // { dg-message "note" "candidates" }
6{ };
db5ae31b
JM
7
8volatile f_class
9ret_v_f_class()
10{
11 f_class t;
12 return t;
13}
14
15int main(void)
16{
17 volatile f_class vf;
48ca24b2 18 0 ? ret_v_f_class() : vf; // { dg-error "match" } can't copy volatile lvalue
db5ae31b
JM
19 return 0;
20}