Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
111 | 1 // { dg-do assemble } |
2 // GROUPS passed temps | |
3 // temps file | |
4 // Date: Mon, 07 Sep 1992 13:12:28 EDT | |
5 // From: richard@ttt.kth.se | |
6 // { dg-options "-fpermissive" } | |
7 struct foo | |
8 { | |
9 char *s; | |
10 foo(char *x) { s=x; } | |
11 }; | |
12 | |
13 struct cookie | |
14 { | |
15 foo * v; | |
16 cookie ( foo * x) { v=x; } | |
17 }; | |
18 | |
19 cookie cat(&foo("apabepa"));// { dg-warning "deprecated conversion|forbids converting a string constant" "dep" } | |
145 | 20 // { dg-warning "13:taking address of rvalue" "add" { target *-*-* } .-1 } |