Skip to content

Commit

Permalink
Add tests for 15802 and 15372
Browse files Browse the repository at this point in the history
  • Loading branch information
Kozzi11 committed Mar 16, 2016
1 parent 548c6d1 commit 3e107ef
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/compilable/test15802.d
@@ -0,0 +1,10 @@
extern(C++) {
template Foo(T) {
static int boo();
}
}

void main()
{
string s = Foo!(int).boo.mangleof;
}
25 changes: 25 additions & 0 deletions test/runnable/cpp_mangleof.d
@@ -0,0 +1,25 @@

extern(C++) void foo15372(T)();
void test15372()
{
assert((foo15372!int).mangleof == "_Z8foo15372IiEvv");
}

extern(C++) {
template Foo15802(T) {
static void boo();
}
}
void test15802()
{
assert((Foo15802!(int).boo).mangleof == "_ZN8Foo15802IiE3booEv");
}

void main()
{
version(Posix)
{
test15372();
test15802();
}
}

0 comments on commit 3e107ef

Please sign in to comment.