summaryrefslogtreecommitdiffstats
path: root/tests/front-end/typedef.slang
blob: 7e96bead06461d1ff07df5e80fa2eb8553f21ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:SIMPLE:
// test that we can `typedef` a type

typedef float F32;

F32 foo()
{
	float x = 123.0;
	return x;
}

float bar()
{
	return foo();
}