Commit f17d060e by Jason Merrill

link, expect link errors

From-SVN: r49404
parent a9c898b9
// Build don't link:
// GROUPS passed unions // GROUPS passed unions
// This is fixed by finish_anon_union doing a string_cst_equal check on // This is fixed by finish_anon_union doing a string_cst_equal check on
// the DECL_SIZE of the decls, instead of comparing the DECL_SIZE nodes. // the DECL_SIZE of the decls, instead of comparing the DECL_SIZE nodes.
// The compiler currently fails to allocate space for the static union.
// excess errors test - XFAIL *-*-*
unsigned unsigned
hash(const double d) hash(const double d)
{ {
...@@ -12,3 +15,8 @@ ...@@ -12,3 +15,8 @@
asdouble = d; asdouble = d;
return asint[0] ^ asint[1]; return asint[0] ^ asint[1];
} }
int main ()
{
hash (3.1415);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment