Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / temps1.C
blobad42f4257511ef3f94848716fec26cd5c51e1ecb
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
9   char *s;
10   foo(char *x) { s=x; }
13 struct cookie
15   foo * v;
16   cookie ( foo * x) { v=x; }
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 }