fix testcase. It's not safe to strictly evaluate a load that should be lazy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-01-03 19:12:31 +00:00
parent a3bfdd47ab
commit c9d3471d07

View File

@ -755,8 +755,9 @@ In c99 mode, the preprocessor doesn't like assembly comments like #TRUNCATE.
//===---------------------------------------------------------------------===//
This could be a single 16-bit load.
int f(char *p) {
if (p[0] == 1 && p[1] == 2) return 1;
if ((p[0] == 1) & (p[1] == 2)) return 1;
return 0;
}