summaryrefslogtreecommitdiffstats
path: root/tests/serialization/obfuscated-loc-module.slang
blob: 4837e648617f65745e3eaa50d13e22b349465a30 (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


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

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