summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test10981.d
blob: f0a6820fa7e82dfc2a525576939e4f394bf2a3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
void foo(int i)
in
{
    class X1
    {
        void in_nested() pure
        in { assert(i); }   // OK <- NG
        out { assert(i); }  // OK <- NG
        body {}
    }
}
out
{
    class X2
    {
        void out_nested() pure
        in { assert(i); }   // OK <- NG
        out { assert(i); }  // OK <- NG
        body {}
    }
}
body
{
}