Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
imports
/
test49a.d
blob: a017ec2e13e760994bbc908c6e7f040f8f8600e9 [
file
] [
log
] [
blame
]
module
imports
.
test49a
;
import
core
.
stdc
.
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
;
}