diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-02 05:48:32 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-02 05:48:32 +0000 |
commit | 6e8e64421ee55699c413495ac55d1877dcee2338 (patch) | |
tree | a4110235cafca2872b01d7cfd3080911358e06a1 /test | |
parent | 52402b0bef411e4c58527aba943137d9953c6e46 (diff) | |
download | external_llvm-6e8e64421ee55699c413495ac55d1877dcee2338.zip external_llvm-6e8e64421ee55699c413495ac55d1877dcee2338.tar.gz external_llvm-6e8e64421ee55699c413495ac55d1877dcee2338.tar.bz2 |
For PR1070:
Add a test case to ensure that llvm-upgrade retains correct semantics
for the previous definition of "cast to bool" which compared against null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Assembler/2007-01-01-Cast-To-Bool.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Assembler/2007-01-01-Cast-To-Bool.ll b/test/Assembler/2007-01-01-Cast-To-Bool.ll new file mode 100644 index 0000000..1dfc5d5 --- /dev/null +++ b/test/Assembler/2007-01-01-Cast-To-Bool.ll @@ -0,0 +1,5 @@ +; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'icmp ne' +bool %main(int %X) { + %res = cast bool true to bool + ret bool %res +} |