diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-01-28 01:27:25 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-01-28 01:27:25 +0000 |
commit | 75c1416b920eeac948d4462ddc0ace03773c9ab9 (patch) | |
tree | 4b84b36229c9a14e32e8e1269b8ae8543f4e7793 /gcc | |
parent | 013dea401a39f82e1a389d6fdf6aa3183f21e6d1 (diff) | |
download | gcc-75c1416b920eeac948d4462ddc0ace03773c9ab9.zip gcc-75c1416b920eeac948d4462ddc0ace03773c9ab9.tar.gz gcc-75c1416b920eeac948d4462ddc0ace03773c9ab9.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/stdio-opt-2.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fbfbe8e..eec04ff 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * gcc.c-torture/execute/stdio-opt-2.c: Also test __builtin_puts + and __builtin_putchar. + 2001-01-27 Jakub Jelinek <jakub@redhat.com> * 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 1e30336..e917205 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; } |