[cfe-commits] r91073 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/Sema/return.c
Mike Stump
mrs at apple.com
Fri Dec 11 13:59:39 PST 2009
On Dec 11, 2009, at 12:56 PM, Eli Friedman wrote:
> Okay... in terms of "actually works", where exactly do you draw the
> line? How about:
> int foo(int x) {
> if (x)
> asm xor eax, eax
> else
> asm xor eax, eax
> }
> }
I am unsure about that case.
> Or:
> int foo(int x) {
> int i;
> asm xor eax, eax
> for (i = 0; i < x; i++)
> asm imul eax, i
> }
> ?
No, that doesn't set the return value.
More information about the cfe-commits
mailing list