diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-23 00:26:29 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-23 00:26:29 +0000 |
commit | c766b8a1f4c4c5ee9d6aa558678121fa0ce3ba7c (patch) | |
tree | 1cd1cc54b18b170730c4c26148e332c94899f679 /clang/test/CodeGenCXX/temp-order.cpp | |
parent | 0e44c51a3e875c84b674881d4ca9f4382f807c5b (diff) | |
download | bcm5719-llvm-c766b8a1f4c4c5ee9d6aa558678121fa0ce3ba7c.tar.gz bcm5719-llvm-c766b8a1f4c4c5ee9d6aa558678121fa0ce3ba7c.zip |
Fix a FIXME, this test folds to a constant now.
llvm-svn: 94263
Diffstat (limited to 'clang/test/CodeGenCXX/temp-order.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/temp-order.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/test/CodeGenCXX/temp-order.cpp b/clang/test/CodeGenCXX/temp-order.cpp index e1ef7eb260a..05a9aed2def 100644 --- a/clang/test/CodeGenCXX/temp-order.cpp +++ b/clang/test/CodeGenCXX/temp-order.cpp @@ -167,13 +167,10 @@ void test() { if (f5() != ORDER4(5, 3, 7, 2)) error(); -// FIXME: Clang/LLVM currently can't fold this to a constant. If the error check -// is present (since it avoids single-caller inlining). PR5645. - -// CHECK: call void @print(i8* {{.*}}, i32 1251552576) +// CHECK: call void @print(i8* {{.*}}, i32 1251552576) print("f6", f6()); -// if (f6() != ORDER6(3, 7, 11, 5, 13, 2)) -// error(); + if (f6() != ORDER6(3, 7, 11, 5, 13, 2)) + error(); } |