summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-03-11 21:07:48 +0000
committerReid Kleckner <rnk@google.com>2016-03-11 21:07:48 +0000
commit60e53cdcb71cb823ae0a05be8974b0b31e7a4fa4 (patch)
tree835d8f5437fccda076d9f1238170b89dcbf419a7
parent3b07caef6647e81dbac623d3cea9bc7a21c755e2 (diff)
downloadbcm5719-llvm-60e53cdcb71cb823ae0a05be8974b0b31e7a4fa4.tar.gz
bcm5719-llvm-60e53cdcb71cb823ae0a05be8974b0b31e7a4fa4.zip
Fix order of arguments to fputs
This time actually tested on Linux, where the test is not XFAILed. llvm-svn: 263294
-rw-r--r--compiler-rt/test/asan/TestCases/printf-4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/asan/TestCases/printf-4.c b/compiler-rt/test/asan/TestCases/printf-4.c
index 8a9545a0831..5a883fe99ef 100644
--- a/compiler-rt/test/asan/TestCases/printf-4.c
+++ b/compiler-rt/test/asan/TestCases/printf-4.c
@@ -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
OpenPOWER on IntegriCloud