Sign in
gnu
/
gcc
/
929abc7fe3ad4491ac412ca232e055618559f268
/
.
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
imports
/
test49a.d
blob: 57baf4be00a59518261196e9858b67199bd7bd0d [
file
] [
log
] [
blame
]
module
imports
.
test49a
;
import
std
.
stdio
;
int
x
;
template
Foo
(
T
)
{
static
this
()
{
printf
(
"static this()\n"
);
assert
(
x
==
0
);
x
++;
}
static
~
this
()
{
printf
(
"static ~this()\n"
);
assert
(
x
==
1
);
x
--;
}
}
void
baz
()
{
alias
Foo
!(
int
)
bar
;
}