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 fbfbe8ec842ce3e5c948011e472cc98ea82168d3..eec04ff1caec9a0d3fecee08df8169c4ee69ce55 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 1e303361a116e109fca33943878b3faae9012067..e917205c249f9d3e2c79fbc77a00a1163ad5c8a9 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;
 }