summaryrefslogtreecommitdiff
path: root/tests/diagnostics/call-argument-type.slang
blob: b4f7e7477d744f57da1ea53f34efb5657617a9f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST(smoke):SIMPLE:
// call function with wrong argument type

struct A {};
struct B {};

void f(A a) {}
void g(B b)
{
	f(b);
}