aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/pr108962.d
blob: 0fefa126b547b86062e6f785a01153394fca7829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108962
// { dg-do compile }
// { dg-options "-fno-exceptions -fdump-tree-original" }
extern(C) void main()
{
    final switch (0)
    {
        case 1:
            return;
    }
}
// { dg-final { scan-tree-dump-times "_d_assert_msg" 1 "original" } }
// { dg-final { scan-tree-dump-not "_d_throw" "original" } }