stdio-opt-2.c: Also test __builtin_puts and __builtin_putchar.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 28 Jan 2001 01:27:25 +0000 (01:27 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 28 Jan 2001 01:27:25 +0000 (01:27 +0000)
* gcc.c-torture/execute/stdio-opt-2.c: Also test __builtin_puts
and __builtin_putchar.

From-SVN: r39307

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/stdio-opt-2.c

index fbfbe8e..eec04ff 100644 (file)
@@ -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
index 1e30336..e917205 100644 (file)
@@ -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;
 }