[compiler-rt] r263294 - Fix order of arguments to fputs
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 11 13:07:49 PST 2016
Author: rnk
Date: Fri Mar 11 15:07:48 2016
New Revision: 263294
URL: http://llvm.org/viewvc/llvm-project?rev=263294&view=rev
Log:
Fix order of arguments to fputs
This time actually tested on Linux, where the test is not XFAILed.
Modified:
compiler-rt/trunk/test/asan/TestCases/printf-4.c
Modified: compiler-rt/trunk/test/asan/TestCases/printf-4.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/printf-4.c?rev=263294&r1=263293&r2=263294&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/printf-4.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/printf-4.c Fri Mar 11 15:07:48 2016
@@ -12,10 +12,10 @@ int main() {
volatile float f = 1.239;
volatile char s[] = "34";
volatile char buf[2];
- fputs(stderr, "before sprintf");
+ fputs("before sprintf\n", stderr);
sprintf((char *)buf, "%c %d %.3f %s\n", c, x, f, s);
- fputs(stderr, "after sprintf");
- fputs(stderr, (const char *)buf);
+ fputs("after sprintf", stderr);
+ fputs((const char *)buf, stderr);
return 0;
// Check that size of output buffer is sanitized.
// CHECK-ON: before sprintf
More information about the llvm-commits
mailing list