aboutsummaryrefslogtreecommitdiff
path: root/tests/xok/superval.c
blob: f6903c24535b157c9e6fff57f26a71902c898a94 (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 v){
	int <>_ok()
	{
		return v;
	}
};

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

typedef inst = supertmpl[](20);

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