Commit 7a53514c authored by law's avatar law
Browse files

* gcc.c-torture/execute/20000801-3.c, gcc.c-torture/20000801-4.c:

	New tests.
	* gcc.c-torture/execute/20000801-3.x, gcc/c-torture/20000801-4.x:
	Xfail.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35445 138bc75d-0d04-0410-961f-82ee72b054a4
parent 89a75961
2000-08-03 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.c-torture/execute/20000801-3.c, gcc.c-torture/20000801-4.c:
New tests.
* gcc.c-torture/execute/20000801-3.x, gcc/c-torture/20000801-4.x:
Xfail.
2000-08-02 Geoff Keating <geoffk@cygnus.com>
* lib/objc.exp (objc_target_compile): Look for libobjc.a in
......
/* Origin: PR c/92 from Simon Marlow <t-simonm@microsoft.com>, adapted
to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
*/
typedef struct { } empty;
typedef struct {
int i;
empty e;
int i2;
} st;
st s = { .i = 0, .i2 = 1 };
extern void abort (void);
int
main (void)
{
if (s.i2 == 1)
exit (0);
else
abort ();
}
set torture_execute_xfail "*-*-*"
return 0
/* Origin: PR c/128 from Martin Sebor <sebor@roguewave.com>, adapted
as a testcase by Joseph Myers <jsm28@cam.ac.uk>.
*/
/* Character arrays initialised by a string literal must have
uninitialised elements zeroed. This isn't clear in the 1990
standard, but was fixed in TC2 and C99; see DRs #060, #092.
*/
extern void abort (void);
int
foo (void)
{
char s[2] = "";
return 0 == s[1];
}
int
main (void)
{
{
char s[] = "x";
}
if (foo ())
exit (0);
else
abort ();
}
set torture_execute_xfail "*-*-*"
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