-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilla
Description
| Bugzilla Link | 11340 |
| Resolution | FIXED |
| Resolved on | Nov 08, 2011 15:08 |
| Version | trunk |
| OS | Linux |
| CC | @efriedma-quic |
Extended Description
[regehr@gamow tmp050]$ clang -O1 small.c ; ./a.out
0
[regehr@gamow tmp050]$ clang -O2 small.c ; ./a.out
1
[regehr@gamow tmp050]$ clang -v
clang version 3.1 (trunk 144028)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr@gamow tmp050]$ cat small.c
int printf (const char *, ...);
int func_4 (int si1)
{
return si1;
}
int func_25 (int ui2)
{
return 1 / ui2;
}
int g_9;
int g_190 = 1;
int main ()
{
if (func_25 (func_4 (g_9 <= 0))) g_190 = 0;
printf ("%d\n", g_190);
return 0;
}
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilla