mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-04 09:14:04 +08:00
d: Add testcase from PR108962
The issue was fixed in r14-2232. PR d/108962 gcc/testsuite/ChangeLog: * gdc.dg/pr108962.d: New test.
This commit is contained in:
parent
80ae426a19
commit
2e06e39a12
13
gcc/testsuite/gdc.dg/pr108962.d
Normal file
13
gcc/testsuite/gdc.dg/pr108962.d
Normal file
@ -0,0 +1,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" } }
|
Loading…
Reference in New Issue
Block a user