mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 08:40:33 +08:00
* gcc.c-torture/execute/990106-1.c: New test.
From-SVN: r24504
This commit is contained in:
parent
52f7bca7c4
commit
e2ba7b0e73
@ -1,3 +1,7 @@
|
||||
Wed Jan 6 02:21:59 1999 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/execute/990106-1.c: New test.
|
||||
|
||||
Wed Dec 30 23:05:28 1998 Zack Weinberg <zack@rabi.columbia.edu>
|
||||
|
||||
* gcc.c-torture/compile/981223-1.c: New test.
|
||||
|
16
gcc/testsuite/gcc.c-torture/execute/990106-1.c
Normal file
16
gcc/testsuite/gcc.c-torture/execute/990106-1.c
Normal file
@ -0,0 +1,16 @@
|
||||
foo(bufp)
|
||||
char *bufp;
|
||||
{
|
||||
int x = 80;
|
||||
return (*bufp++ = x ? 'a' : 'b');
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
char x;
|
||||
|
||||
if (foo (&x) != 'a')
|
||||
abort ();
|
||||
|
||||
exit (0);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user