diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-03-15 12:48:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-15 09:48:20 -0700 |
| commit | b6de9a0091ab6a7414b46c7eb50f25b9512fb455 (patch) | |
| tree | adc37f1942d848446182f0dbb72dd1f487dbb587 /tests/doc/doc-req.slang | |
| parent | d8150e70612b58fb1cfefa262d3d862a6e6e79ba (diff) | |
Test Doc System (#1754)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Use capability system in docs.
Simplify how requirements/availability is produced.
* Small fixes in output of availablity.
* Updated stdlib doc.
* Small improvements.
* Added doc test type.
Improved readability of straight .md text
Made -doc option output to diagnostic stream.
* Add test for checking requirements info is correctly extracted.
Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'tests/doc/doc-req.slang')
| -rw-r--r-- | tests/doc/doc-req.slang | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/doc/doc-req.slang b/tests/doc/doc-req.slang new file mode 100644 index 000000000..bee11f7d4 --- /dev/null +++ b/tests/doc/doc-req.slang @@ -0,0 +1,15 @@ +//TEST:DOC:-module-name module -doc -no-codegen + +// To Test out documentation around intrinsics + +__target_intrinsic(hlsl, "someHLSLThing()") +[__requiresNVAPI] +__cuda_sm_version(2.0) +__target_intrinsic(cuda, "someCUDAThing()") +__target_intrinsic(glsl, "someGLSLThing()") +__glsl_extension(GL_EXT_NiftyExtension) +__spirv_version(1.3) +__target_intrinsic(cpp, "someCPPThing()") +void doThing() +{ +} |
