mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-27 11:34:14 +08:00
* gcc.c-torture/execute/20000715-2.c: New test.
From-SVN: r35050
This commit is contained in:
parent
eff9c80d3e
commit
91f4790ccd
@ -1,3 +1,7 @@
|
||||
2000-07-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/20000715-2.c: New test.
|
||||
|
||||
2000-07-15 Michael Meissner <meissner@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/20000715-1.c: New test.
|
||||
|
14
gcc/testsuite/gcc.c-torture/execute/20000715-2.c
Normal file
14
gcc/testsuite/gcc.c-torture/execute/20000715-2.c
Normal file
@ -0,0 +1,14 @@
|
||||
extern void abort(void);
|
||||
extern void exit(int);
|
||||
|
||||
unsigned int foo(unsigned int a)
|
||||
{
|
||||
return ((unsigned char)(a + 1)) * 4;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
if (foo((unsigned char)~0))
|
||||
abort ();
|
||||
exit(0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user