summaryrefslogtreecommitdiffstats
path: root/tests/bugs/import-overload-error.hlsl
blob: 21b9a7c8fe318f652e21393e188b6fecb45a5ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Disbaled because Slang should perform its own semantic checking now
//TEST_IGNORE_FILE
//TEST:COMPARE_HLSL: -profile cs_5_0

#ifdef __SLANG__
__import import_overload_error;
#else

void foo(int a) {}
void foo(float b) {}

#endif

void main()
{
// Note(tfoley): futzing around with tokens to
// make sure error message gets reported at a
// consistent location between languages.
int a;
foo();
}