From: Kaveh R. Ghazi Date: Sun, 28 Jan 2001 01:27:25 +0000 (+0000) Subject: stdio-opt-2.c: Also test __builtin_puts and __builtin_putchar. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75c1416b920eeac948d4462ddc0ace03773c9ab9;p=gcc.git stdio-opt-2.c: Also test __builtin_puts and __builtin_putchar. * gcc.c-torture/execute/stdio-opt-2.c: Also test __builtin_puts and __builtin_putchar. From-SVN: r39307 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fbfbe8ec842..eec04ff1cae 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-01-27 Kaveh R. Ghazi + + * gcc.c-torture/execute/stdio-opt-2.c: Also test __builtin_puts + and __builtin_putchar. + 2001-01-27 Jakub Jelinek * gcc.dg/gnu99-init-1.c: Add 3 more designated range initializer diff --git a/gcc/testsuite/gcc.c-torture/execute/stdio-opt-2.c b/gcc/testsuite/gcc.c-torture/execute/stdio-opt-2.c index 1e303361a11..e917205c249 100644 --- a/gcc/testsuite/gcc.c-torture/execute/stdio-opt-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/stdio-opt-2.c @@ -33,6 +33,10 @@ int main() /* Test at least one instance of the __builtin_ style. We do this to ensure that it works and that the prototype is correct. */ __builtin_printf ("%s\n", "hello"); + /* These builtin stubs are called by __builtin_printf, ensure their + prototypes are set correctly too. */ + __builtin_putchar ('\n'); + __builtin_puts ("hello"); return 0; }