summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/duplicate-include/a.slang
blob: ce2c22b61a9866d796a84f926e948fd09e873470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//TEST:INTERPRET(filecheck=CHECK):

// Test that it is OK to include the same file multiple times.

#include "b.slang"

#include "b.slang"

void main()
{
    // CHECK: result: 23
    printf("result: %d\n", foo());
}