aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/uninit-pr104576.c
blob: 0b59acdb6e748b6fcd72ac47be5ca69810d8f6ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
float
test_1 (int *flag, float theta)
{
  float t;
  float f;

  if (*flag)
    t = 2.0f;

  f = __builtin_sinf (theta);
  
  if (*flag)
    f *= t;

  return f;
}