summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr20995-1.C
blob: aa96896392393f8093f7f98a407be803c2ae215f (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-O2" } */

template<int N> void foo()
{
    double d = (N ? 0.0 : 0) + 1;
}