summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/m1.d
blob: 49a3d15bc3e5a44c5a7f930167b94ac776c10775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// EXTRA_SOURCES: imports/m1a.d
// PERMUTE_ARGS:

module m1;

import std.stdio;

import imports.m1a;

class A
{
}

A createA() { return new A; }

alias A function() aliasM1;

void main()
{
  aFunc( &createA );
  printf("Success\n");
}