summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/define-redefine.slang
blob: 42b7a4dbe9b7c571a2e2f0109267b1c8964da9ea (plain)
1
2
3
4
5
6
7
8
9
10
//TEST:SIMPLE:

// Confirm that we handle redefinition
// of an existing define (with a diagnostic)

#define FOO 1.0f

float foo() { return FOO + 2.0; }

#define FOO 2.0f