aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/gdc142.d
blob: 7713d5e9dab575906ce272839b27bf8ce3b4cfa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// https://bugzilla.gdcproject.org/show_bug.cgi?id=142
// { dg-do compile }

import gcc.attributes;

@attribute("noinline")
int test142a()()
{
    return 142;
}

void test142()
{
    enum E142 = test142a();
}