diff options
author | Siva Chandra <sivachandra@google.com> | 2015-04-15 18:32:17 +0000 |
---|---|---|
committer | Siva Chandra <sivachandra@google.com> | 2015-04-15 18:32:17 +0000 |
commit | f5941b8d081c3ef8a03105bffb06d7d6100932d5 (patch) | |
tree | 3967b3fd5901082e886cc71348dd506712311cef /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 09129d957c51a9007d93979c7fa5ca22c8894bc3 (diff) | |
download | llvm-f5941b8d081c3ef8a03105bffb06d7d6100932d5.zip llvm-f5941b8d081c3ef8a03105bffb06d7d6100932d5.tar.gz llvm-f5941b8d081c3ef8a03105bffb06d7d6100932d5.tar.bz2 |
[TestMiBreak] Print a formatted string via printf in the test case.
Summary:
If the string is not formatted, these can happen when compiled with GCC:
1. If it is a null string "", then GCC completely removes the call to
printf even with -O0.
2. If the string is a single character string, say "\n" for example,
then GCC replaces the call to printf with a call to putchar.
3. If the string length is greater than 1, but is not formatted, then
GCC replaces the call to printf with a call to puts.
All the above will fail the test as we want a breakpoint on "printf" to
hit.
Test Plan: dotest.py -C gcc -p TestMiBreak
Reviewers: chying, ki.stfu
Reviewed By: ki.stfu
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D9025
llvm-svn: 235034
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions