blob: c0bc9116c238614299553793a1933030576eb71b [file] [log] [blame]
/* { dg-do run } */
/* { dg-additional-options "-std=c99" } */
#include <assert.h>
long long decision_result;
long long val;
int truecount = 0;
static void __attribute__((noinline))
buggy (int flag)
{
int condition;
if(flag == 0)
condition = val != 0;
else
condition = !decision_result;
if (condition)
truecount++;
}
int
main (void)
{
decision_result = 1;
buggy(1);
assert (truecount == 0);
return 0;
}