about summary refs log tree commit diff
path: root/stdio-common/tst-printf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-03-15 22:08:18 +0000
committerUlrich Drepper <drepper@redhat.com>2002-03-15 22:08:18 +0000
commitc06b947ef189e2fa8bc9586c4010aa2dae6facb9 (patch)
tree188a303976540bf6af6b47aabc71b6d4211bd5aa /stdio-common/tst-printf.c
parentdff07c4bd402944ea0abb544232541fd9a4c5429 (diff)
downloadglibc-c06b947ef189e2fa8bc9586c4010aa2dae6facb9.tar.gz
glibc-c06b947ef189e2fa8bc9586c4010aa2dae6facb9.tar.xz
glibc-c06b947ef189e2fa8bc9586c4010aa2dae6facb9.zip
Update.
	* stdio-common/tst-printf.c (main): Comment out one test which
	checked the compiler's ability to fold floating-point constants
	but not really printf.
	(rfg3): Make s const.
	* stdio-common/tst-printf.sh: Adjust for removed test.
Diffstat (limited to 'stdio-common/tst-printf.c')
-rw-r--r--stdio-common/tst-printf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/stdio-common/tst-printf.c b/stdio-common/tst-printf.c
index df73fe2384..a9db7ad2de 100644
--- a/stdio-common/tst-printf.c
+++ b/stdio-common/tst-printf.c
@@ -236,10 +236,15 @@ I am ready for my first lesson today.";
   printf ("%g should be 10\n", 10.0);
   printf ("%g should be 0.02\n", 0.02);
 
+#if 0
+  /* This test rather checks the way the compiler handles constant
+     folding.  gcc behavior wrt to this changed in 3.2 so it is not a
+     portable test.  */
   {
     double x=1.0;
     printf("%.17f\n",(1.0/x/10.0+1.0)*x-x);
   }
+#endif
 
   {
     char buf[200];
@@ -364,7 +369,7 @@ rfg3 (void)
   double g = 5.0000001;
   unsigned long l = 1234567890;
   double d = 321.7654321;
-  char *s = "test-string";
+  const char s[] = "test-string";
   int i = 12345;
   int h = 1234;