repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
volatile1.C
blob
32eef6f301fae1c2e0a25de901523f58e6cb0dcf
1
// { dg-do assemble }
2
// Test that failed lvalue-to-rvalue conversion of vf doesn't crash the
3
// compiler.
4
5
class f_class
6
{ }; // { dg-error "" } candidates
7
8
volatile f_class
9
ret_v_f_class()
10
{
11
f_class t;
12
return t;
13
}
14
15
int main(void)
16
{
17
volatile f_class vf;
18
0 ? ret_v_f_class() : vf; // { dg-error "" } can't copy volatile lvalue
19
return 0;
20
}