aboutsummaryrefslogtreecommitdiff
path: root/tests/xok/supertmpl.c
blob: bc946fb408fc7e9ab647850c341c786309af279f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>

typedef tmpl[](){
	int <>_ok()
	{
		return 20;
	}
};

typedef supertmpl[]() = tmpl[]() {
	int <>_superok()
	{
		return <>_ok();
	}
};

typedef inst = supertmpl[]();

int main()
{
	int ok = inst_superok();
	if (ok == 20)
		puts("OK");
}