Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.law/temps1.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// { dg-do assemble } // GROUPS passed temps // temps file // Date: Mon, 07 Sep 1992 13:12:28 EDT // From: richard@ttt.kth.se // { dg-options "-fpermissive" } struct foo { char *s; foo(char *x) { s=x; } }; struct cookie { foo * v; cookie ( foo * x) { v=x; } }; cookie cat(&foo("apabepa"));// { dg-warning "deprecated conversion|forbids converting a string constant" "dep" } // { dg-warning "13:taking address of rvalue" "add" { target *-*-* } .-1 }