summaryrefslogtreecommitdiffstats
path: root/tests/serialization/obfuscated-loc-module.slang
blob: 63c4f61eeb07a3d2026419fff1934582bdfacfd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//TEST_IGNORE_FILE:

// obfuscated-loc-module.slang


int billy(int v)
{
    return v + 1;
}

// This function is designed to fail during IR passes/emit. 
int silly(int a)
{
    int t = 0;
    [ForceUnroll(10)]
    while ( a > 0)
    {
        t = t + t + a;
    }
    return t;
}