summaryrefslogtreecommitdiff
path: root/tests/front-end/parser-decls.spire
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-12 12:42:17 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-12 13:00:47 -0700
commit5b49974bd6ddd248b5ee1b1e29c0acfc3c422a3a (patch)
tree2e939a9ef7b972944b71ea3f7d11a17af844c3fe /tests/front-end/parser-decls.spire
parentd1f11a29f8a48eecd47ac64c8635ed062cba982d (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/front-end/parser-decls.spire')
-rw-r--r--tests/front-end/parser-decls.spire60
1 files changed, 0 insertions, 60 deletions
diff --git a/tests/front-end/parser-decls.spire b/tests/front-end/parser-decls.spire
deleted file mode 100644
index bc5a2b13b..000000000
--- a/tests/front-end/parser-decls.spire
+++ /dev/null
@@ -1,60 +0,0 @@
-//TEST:SIMPLE:
-// test that we can parse all the expected kinds of declarations
-
-// global-scope `using` is another test
-
-/* Note(tfoley): disabled during syntax transition
-// pipeline
-pipeline P
-{
-
-}
-*/
-
-// empty declaration
-;
-
-// struct type
-struct Pair
-{
- int head;
- float tail;
-
-// Note(tfoley): semicolon is expected/required
-// here for compatibility with HLSL (C-style
-// declarators).
-//
-// TODO: this could be removed if we treat
-// HLSL as a "compatibility mode"
-};
-
-// function at global scope
-float tail(Pair p) { return p.tail; }
-
-/* Note(tfoley): disabled during syntax transition
-
-// module
-module M
-{
- // component declarations
-
- // using declarations
-
-}
-
-// a module can "inherit" from a pipeline
-module M2
- targets P
-{
-}
-
-// shader
-shader S
-{
- // component declarations
-
- // using declarations
-
-}
-
-*/ \ No newline at end of file