* gcc.c-torture/execute/20000715-2.c: New test.

From-SVN: r35050
This commit is contained in:
Jakub Jelinek 2000-07-15 20:08:48 +02:00 committed by Jakub Jelinek
parent eff9c80d3e
commit 91f4790ccd
2 changed files with 18 additions and 0 deletions

View File

@ -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.

View 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);
}