diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-12 12:42:17 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-12 13:00:47 -0700 |
| commit | 5b49974bd6ddd248b5ee1b1e29c0acfc3c422a3a (patch) | |
| tree | 2e939a9ef7b972944b71ea3f7d11a17af844c3fe /tests/preprocessor/define-function-like.spire | |
| parent | d1f11a29f8a48eecd47ac64c8635ed062cba982d (diff) | |
Rename tests from `*.spire` to `*.slang`
Many of the existing test cases were being skipped on accident, because their file names used `.spire` and the test tool was now looking for `.slang`
Diffstat (limited to 'tests/preprocessor/define-function-like.spire')
| -rw-r--r-- | tests/preprocessor/define-function-like.spire | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/preprocessor/define-function-like.spire b/tests/preprocessor/define-function-like.spire deleted file mode 100644 index f1dd9caa4..000000000 --- a/tests/preprocessor/define-function-like.spire +++ /dev/null @@ -1,19 +0,0 @@ -//TEST:SIMPLE: -// support for function-like macros - -#define FOO(x) 1.0 + x - -float foo(float y) { return FOO(y) * 2.0; } - -// simple token pasting - -#define PASTE(a,b) a##b - -PASTE(flo,at) bar() { return 0.0; } - -// no space before parens? not a function-like macro - -#define M (x) - (x) - -// Error: undefined identifier `x` -float bar(float a) { return M(a); } |
