summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/unreachable1.C
blob: da468a099f63d4a6ed33b5d2a74ea8553b8e0282 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR middle-end/17827
// Origin: Andre Woebbeking <Woebbeking@web.de>
// Testcase by Volker Reichelt <reichelt@gcc.gnu.org>
// { dg-do compile }

void foo()
{
  if (false)
    if (int i=0)
      int j=i;
}