summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/pr101657.d
blob: 0d77c36f0306fe0fba6acdf9f20a3ec73264f7c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101657
// { dg-do compile }
// { dg-additional-options "-H" }

void fun101657()
{
    fail; // { dg-error "undefined identifier 'fail'" }
}

// { dg-final { if ![file exists pr101657.di] \{                } }
// { dg-final {     pass "gdc.dg/pr101657.d   (file exists pr101657.di)" } }
// { dg-final { \} else \{                                      } }
// { dg-final {     fail "gdc.dg/pr101657.d   (file exists pr101657.di)" } }
// { dg-final { \}                                              } }