Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.old-deja/g++.law/temps1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
15 foo * v; | 15 foo * v; |
16 cookie ( foo * x) { v=x; } | 16 cookie ( foo * x) { v=x; } |
17 }; | 17 }; |
18 | 18 |
19 cookie cat(&foo("apabepa"));// { dg-warning "deprecated conversion|forbids converting a string constant" "dep" } | 19 cookie cat(&foo("apabepa"));// { dg-warning "deprecated conversion|forbids converting a string constant" "dep" } |
20 // { dg-warning "taking address of temporary" "add" { target *-*-* } .-1 } | 20 // { dg-warning "taking address of rvalue" "add" { target *-*-* } .-1 } |