Commit 6ef0aa7b by Mark Mitchell Committed by Mark Mitchell

re PR c++/12181 (Wrong code with comma operator and c++)

	PR c++/12181
	* g++.dg/expr/comma1.C: New test.

From-SVN: r71182
parent eb698c58
2003-09-07 Mark Mitchell <mark@codesourcery.com>
PR c++/12181
* g++.dg/expr/comma1.C: New test.
2003-09-06 Mark Mitchell <mark@codesourcery.com>
PR c++/11867
......
// { dg-do run }
extern "C" void abort ();
struct gtst
{
unsigned char data[2];
};
static struct gtst s;
int main(int argc, char *argv[])
{
unsigned char * pc;
struct gtst * ps;
ps = &s;
pc = (ps->data[0]='A', ps->data);
if (&s.data[0] != pc)
abort();
return 0;
}
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